diff --git a/tests/amr/models/test_models.cpp b/tests/amr/models/test_models.cpp index 7c902de4e..0dc83537b 100644 --- a/tests/amr/models/test_models.cpp +++ b/tests/amr/models/test_models.cpp @@ -58,11 +58,10 @@ using InitFunctionT = PHARE::initializer::InitFunction<1>; PHARE::initializer::PHAREDict createDict() { PHARE::initializer::PHAREDict dict; - dict["ions"]["nbrPopulations"] = std::size_t{2}; - dict["ions"]["pop0"]["name"] = std::string{"protons"}; - dict["ions"]["pop0"]["mass"] = 1.; - dict["ions"]["pop0"]["particle_initializer"]["name"] - = std::string{"MaxwellianParticleInitializer"}; + dict["ions"]["nbrPopulations"] = std::size_t{2}; + dict["ions"]["pop0"]["name"] = std::string{"protons"}; + dict["ions"]["pop0"]["mass"] = 1.; + dict["ions"]["pop0"]["particle_initializer"]["name"] = std::string{"maxwellian"}; dict["ions"]["pop0"]["particle_initializer"]["density"] = static_cast(density); dict["ions"]["pop0"]["particle_initializer"]["bulk_velocity_x"] @@ -85,14 +84,13 @@ PHARE::initializer::PHAREDict createDict() = static_cast(vthz); - dict["ions"]["pop0"]["particle_initializer"]["nbrPartPerCell"] = int{100}; - dict["ions"]["pop0"]["particle_initializer"]["charge"] = -1.; - dict["ions"]["pop0"]["particle_initializer"]["basis"] = std::string{"Cartesian"}; + dict["ions"]["pop0"]["particle_initializer"]["nbr_part_per_cell"] = int{100}; + dict["ions"]["pop0"]["particle_initializer"]["charge"] = -1.; + dict["ions"]["pop0"]["particle_initializer"]["basis"] = std::string{"cartesian"}; - dict["ions"]["pop1"]["name"] = std::string{"alpha"}; - dict["ions"]["pop1"]["mass"] = 1.; - dict["ions"]["pop1"]["particle_initializer"]["name"] - = std::string{"MaxwellianParticleInitializer"}; + dict["ions"]["pop1"]["name"] = std::string{"alpha"}; + dict["ions"]["pop1"]["mass"] = 1.; + dict["ions"]["pop1"]["particle_initializer"]["name"] = std::string{"maxwellian"}; dict["ions"]["pop1"]["particle_initializer"]["density"] = static_cast(density); dict["ions"]["pop1"]["particle_initializer"]["bulk_velocity_x"] @@ -115,9 +113,9 @@ PHARE::initializer::PHAREDict createDict() = static_cast(vthz); - dict["ions"]["pop1"]["particle_initializer"]["nbrPartPerCell"] = int{100}; - dict["ions"]["pop1"]["particle_initializer"]["charge"] = -1.; - dict["ions"]["pop1"]["particle_initializer"]["basis"] = std::string{"Cartesian"}; + dict["ions"]["pop1"]["particle_initializer"]["nbr_part_per_cell"] = int{100}; + dict["ions"]["pop1"]["particle_initializer"]["charge"] = -1.; + dict["ions"]["pop1"]["particle_initializer"]["basis"] = std::string{"cartesian"}; dict["electromag"]["name"] = std::string{"EM"}; dict["electromag"]["electric"]["name"] = std::string{"E"}; diff --git a/tests/core/numerics/ion_updater/test_updater.cpp b/tests/core/numerics/ion_updater/test_updater.cpp index c73b5a887..29efe7f20 100644 --- a/tests/core/numerics/ion_updater/test_updater.cpp +++ b/tests/core/numerics/ion_updater/test_updater.cpp @@ -396,7 +396,8 @@ struct IonUpdaterTest : public ::testing::Test // now let's initialize Electromag fields to user input functions // and ion population particles to user supplied moments - ElectromagInitializerFactory_t::create(init_dict)->init(EM, layout); + ElectromagInitializerFactory_t::create(init_dict["electromag"]) + ->init(EM, layout); for (auto& pop : ions) { auto const& info = pop.particleInitializerInfo();