MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / VisMFBaseName

Function VisMFBaseName

Src/Extern/ProfParser/AMReX_BLWritePlotFile.cpp:169–176  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

167
168// --------------------------------------------------------------------
169std::string VisMFBaseName(const std::string& filename) {
170 BL_ASSERT(filename[filename.length() - 1] != '/');
171 if(const char *slash = strrchr(filename.c_str(), '/')) {
172 return std::string(slash + 1);
173 } else {
174 return filename;
175 }
176}
177
178
179// --------------------------------------------------------------------

Callers 1

WritePlotfile2DFrom3DFunction · 0.85

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected