Skip to content

Commit

Permalink
Mistaken naming convention for runGRChombo function. Should be runGRB…
Browse files Browse the repository at this point in the history
…oondi.
  • Loading branch information
ShaunFell committed Jun 19, 2024
1 parent efa29d2 commit 5f41210
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions Examples/EMMinkowski/Main_EMKerrBH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ Main method to run simulation
*/
#include "EMFieldLevel.hpp" // new Level class
#include "SetupFunctions.hpp" //For setting up MPI processes
#include "runGRChombo.hpp" //main run function
#include "runGRBoondi.hpp" //main run function

int main(int argc, char *argv[])
{
mainSetup(argc, argv); // setup MPI processes

int status = runGRChombo<EMFieldLevel>(
int status = runGRBoondi<EMFieldLevel>(
argc, argv); // run simulation with modified level class

if (status == 0)
{
pout() << "GRChombo finished." << std::endl;
pout() << "GRBoondi finished." << std::endl;
}
else
{
pout() << "GRChombo failed with return code " << status << std::endl;
pout() << "GRBoondi failed with return code " << status << std::endl;
}

mainFinalize(); // cleanup MPI processes
Expand Down
8 changes: 4 additions & 4 deletions Examples/NonLinearProcaKerrBH/Main_NonlinearProcaKerrBH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ Main method to run simulation
*/
#include "NonlinearProcaFieldLevel.hpp" // new Level class
#include "SetupFunctions.hpp" //For setting up MPI processes
#include "runGRChombo.hpp" //main run function
#include "runGRBoondi.hpp" //main run function

int main(int argc, char *argv[])
{
mainSetup(argc, argv); // setup MPI processes

int status = runGRChombo<ProcaFieldLevel>(
int status = runGRBoondi<ProcaFieldLevel>(
argc, argv); // run simulation with modified level class

if (status == 0)
{
pout() << "GRChombo finished." << std::endl;
pout() << "GRBoondi finished." << std::endl;
}
else
{
pout() << "GRChombo failed with return code " << status << std::endl;
pout() << "GRBoondi failed with return code " << status << std::endl;
}

mainFinalize(); // cleanup MPI processes
Expand Down
8 changes: 4 additions & 4 deletions Examples/ProcaKerrBH/Main_ProcaKerrBH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ Main method to run simulation
*/
#include "ProcaFieldLevel.hpp" // new Level class
#include "SetupFunctions.hpp" //For setting up MPI processes
#include "runGRChombo.hpp" //main run function
#include "runGRBoondi.hpp" //main run function

int main(int argc, char *argv[])
{
mainSetup(argc, argv); // setup MPI processes

int status = runGRChombo<ProcaFieldLevel>(
int status = runGRBoondi<ProcaFieldLevel>(
argc, argv); // run simulation with modified level class

if (status == 0)
{
pout() << "GRChombo finished." << std::endl;
pout() << "GRBoondi finished." << std::endl;
}
else
{
pout() << "GRChombo failed with return code " << status << std::endl;
pout() << "GRBoondi failed with return code " << status << std::endl;
}

mainFinalize(); // cleanup MPI processes
Expand Down
8 changes: 4 additions & 4 deletions Examples/ProcaKerrdeSitter/Main_ProcaKdS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ Main method to run simulation
*/
#include "ProcaFieldLevel.hpp" // new Level class
#include "SetupFunctions.hpp" //For setting up MPI processes
#include "runGRChombo.hpp" //main run function
#include "runGRBoondi.hpp" //main run function

int main(int argc, char *argv[])
{
mainSetup(argc, argv); // setup MPI processes

int status = runGRChombo<ProcaFieldLevel>(
int status = runGRBoondi<ProcaFieldLevel>(
argc, argv); // run simulation with modified level class

if (status == 0)
{
pout() << "GRChombo finished." << std::endl;
pout() << "GRBoondi finished." << std::endl;
}
else
{
pout() << "GRChombo failed with return code " << status << std::endl;
pout() << "GRBoondi failed with return code " << status << std::endl;
}

mainFinalize(); // cleanup MPI processes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Please refer to LICENSE in GRBoondi's root directory

// Main run function templated over level class

template <class level_t> int runGRChombo(int argc, char *argv[])
template <class level_t> int runGRBoondi(int argc, char *argv[])
{
// Load the parameter file and construct the SimulationParameter class
// To add more parameters edit the SimulationParameters file.
Expand Down

2 comments on commit 5f41210

@ShaunFell
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not have been committed to main, I was working in a different branch. Why did it push to main? I'll revert this commit

@ShaunFell
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second thought, all the tests passed and the examples still run, so I won't revert this commit since it was a small change.

Please sign in to comment.