Axel Huebl

Results 1318 comments of Axel Huebl
trafficstars

Gotta update some CI still. This PR is not super urgent, if you want to avoid any backlash feel free to keep it open until I return from parental leave.

@WeiqunZhang, do you think we could create a file similar to `warpx_used_inputs` that has `amrex::ParmParse` constants evaluated in it? Something like `warpx_evaluated_inputs`.

Example: https://github.com/ECP-WarpX/WarpX/blob/ce7f5cc28cdfa0710f4199912caef4c4d9d2f161/Examples/Tests/Implicit/inputs_1d#L1-L24 Regarding replaced for `amr.n_cell` and `geometry.prob_hi`.

@WeiqunZhang mentioned that currently we will see in `warpx_used_inputs`: ``` amr.n_cell = nz amr.n_cell = 40 geometry.prob_hi = 10.*de0 geometry.prob_hi = ``` (related to https://github.com/AMReX-Codes/amrex/issues/4087 ). We recently updated the...

Thanks for the issue. What does `written in FAB_NATIVE_32 format` mean? You wrote it from a single precision AMReX? If that is the case, you also need to compile pyAMReX...

Hi @indra098124, When you have the time, please see our open questions :) > Maybe you can try to use fcompare (in amrex/Tools/Plotfile) to compare your plotfile with itself to...

Hm, I am a bit hesitant to add a lot if if amrex initialized checks in pyAMReX. But if you add them upstream then we can just C++ throw and...

> Can amrex be initialized when the module is imported? mpi4py style? Possibly... But there is a lot of runtime stuff people might want to pass to init

Yes, for pyAMReX, we added fixes in AMReX that make sure we can finalize and reinit many times in a row in the same process. I always considered import-time side-effects...

An alternative could be to only allow access to pyAMReX functions with a content manager... Something like ```py import amrex.space3d as amr with amr.Initialized() as amx: amx.PlotFileData("./tests/projz04000/") ```