Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WarpX class: move WriteUsedInputsFile to an anonymous namespace in WarpXInitData.cpp #5657

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions Source/Initialization/WarpXInitData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,15 @@ namespace
// TODO: check memory per MPI rank, especially if GPUs are underutilized
// TODO: CPU tiling hints with OpenMP
}

/** Write a file that record all inputs: inputs file + command line options */
void WriteUsedInputsFile ()
{
std::string filename = "warpx_used_inputs";
ParmParse pp_warpx("warpx");
pp_warpx.queryAdd("used_inputs_file", filename);
ablastr::utils::write_used_inputs_file(filename);
}
}

void
Expand Down Expand Up @@ -496,16 +505,6 @@ WarpX::PrintMainPICparameters ()
}
}

void
WarpX::WriteUsedInputsFile () const
{
std::string filename = "warpx_used_inputs";
ParmParse pp_warpx("warpx");
pp_warpx.queryAdd("used_inputs_file", filename);

ablastr::utils::write_used_inputs_file(filename);
}

void
WarpX::InitData ()
{
Expand Down Expand Up @@ -590,7 +589,7 @@ WarpX::InitData ()
if (m_implicit_solver) {
m_implicit_solver->PrintParameters();
}
WriteUsedInputsFile();
::WriteUsedInputsFile();

// Run div cleaner here on loaded external fields
if (m_do_divb_cleaning_external) {
Expand Down
3 changes: 0 additions & 3 deletions Source/WarpX.H
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,6 @@ public:
/** Print main PIC parameters to stdout */
void PrintMainPICparameters ();

/** Write a file that record all inputs: inputs file + command line options */
void WriteUsedInputsFile () const;

/** Print dt and dx,dy,dz */
void PrintDtDxDyDz ();

Expand Down
Loading