Skip to content

Commit

Permalink
Avoid std::filesystem
Browse files Browse the repository at this point in the history
It has caused a lot of issues on systems with a default gcc <= 8.  PR AMReX-Codes#3523
was trying to the issue. But unfortunately it does not always work. So we
are going to simply avoid std::filesystem.
  • Loading branch information
WeiqunZhang committed Oct 19, 2023
1 parent 7ee2912 commit 97f93ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tools/Plotfile/fgradient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <AMReX_Vector.H>
#include <cstdlib>
#include <iterator>
#include <filesystem>
#include <sstream>
#include <string>

Expand Down Expand Up @@ -129,7 +128,7 @@ void main_main()
}

if (outfile.empty()) {
outfile = "grad."+std::filesystem::path(pltfile).filename().string();
outfile = "grad."+VisMF::BaseName(pltfile);
}

PlotFileData pf(pltfile);
Expand Down

0 comments on commit 97f93ea

Please sign in to comment.