Skip to content

Commit

Permalink
<filesystem> is not available with HIP on Frontier
Browse files Browse the repository at this point in the history
use amrex::FileSystem instead
  • Loading branch information
zingale committed Apr 5, 2024
1 parent 0462ceb commit d666946
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/driver/Castro_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <iostream>
#include <string>
#include <ctime>
#include <filesystem>

#include <AMReX_Utility.H>
#include <Castro.H>
Expand Down Expand Up @@ -579,7 +578,7 @@ Castro::writeJobInfo (const std::string& dir, const Real io_time)
jobInfoFile << "output date / time: "
<< std::put_time(std::localtime(&now), "%c\n") << "\n";

jobInfoFile << "output dir: " << std::filesystem::current_path() << "\n";
jobInfoFile << "output dir: " << amrex::FileSystem::CurrentPath() << "\n";

jobInfoFile << "I/O time (s): " << io_time << "\n";

Expand Down

0 comments on commit d666946

Please sign in to comment.