21constexpr unsigned Dim = 3;
27#include <Kokkos_MathematicalConstants.hpp>
28#include <Kokkos_MathematicalFunctions.hpp>
29#include <Kokkos_Random.hpp>
44int main(
int argc,
char* argv[]) {
58 for (
unsigned d = 0; d <
Dim; d++) {
59 nr[d] = std::atoi(argv[arg++]);
62 size_type totalP = std::atoll(argv[arg++]);
63 int nt = std::atoi(argv[arg++]);
64 std::string solver = argv[arg++];
66 double lbt = std::atof(argv[arg++]);
67 std::string step_method = argv[arg++];
69 std::vector<std::string> preconditioner_params;
72 if (solver ==
"PCG") {
73 for (
int i = 0; i < 5; i++) {
74 preconditioner_params.push_back(argv[arg++]);
79 preconditioner_params);
88 msg <<
"Starting iterations ..." <<
endl;
92 msg <<
"End." <<
endl;
int main(int argc, char *argv[])
ippl::detail::size_type size_type
ippl::Vector< T, Dim > Vector_t
Inform & endl(Inform &inf)
void initialize(int &argc, char *argv[], MPI_Comm comm)
void run(int nt)
The main for loop fro running a simulation.
Timing::TimerRef TimerRef
static TimerRef getTimer(const char *nm)
static void stopTimer(TimerRef t)
static void startTimer(TimerRef t)
void setTime(double time_)
void pre_run() override
A method that should be used for setting up the simulation.