Skip to content

Commit

Permalink
Py: C++
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Jun 27, 2022
1 parent b0e4094 commit 5c3994a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/python/ImpactX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ void init_ImpactX(py::module& m)
py::class_<ImpactX, amrex::AmrCore>(m, "ImpactX")
.def(py::init<>())

// TODO: not yet working to add runtime files; work in AMReX needed
.def("load_inputs_file",
[](ImpactX const & /* ix */, std::string const filename) {
#if defined(AMREX_DEBUG) || defined(DEBUG)
Expand All @@ -40,8 +39,7 @@ void init_ImpactX(py::module& m)
#endif

// TODO: needs https://github.com/AMReX-Codes/amrex/pull/2842
//amrex::ParmParse pp;
//pp.addfile(filename);
amrex::ParmParse::addfile(filename);
})
.def("init_grids", &ImpactX::initGrids)
.def("init_beam_distribution_from_inputs", &ImpactX::initBeamDistributionFromInputs)
Expand Down

0 comments on commit 5c3994a

Please sign in to comment.