- stream_ << stoi(getContainer()->get_name().erase(0, 5)) - 1 << " " << extra_->print();
-
- *tracing_files.at(getContainer()) << stream_.str() << std::endl;
+ container_name=std::to_string(stoi(container_name.erase(0, 5)) - 1);
+ }
+#if HAVE_SMPI
+ if (config::get_value<bool>("smpi/trace-call-location")) {
+ stream_ << container_name << " location " << filename << " " << linenumber << std::endl ;
+ }
+#endif
+ stream_ << container_name << " " << extra_->print();
+ *tracing_files.at(get_container()) << stream_.str() << std::endl;