Skip to content

Commit

Permalink
Fix: Backtraces from Python Part II
Browse files Browse the repository at this point in the history
Do not add Python script name - it confuses the AMReX ParmParser to
build its table.
  • Loading branch information
ax3l committed Jul 20, 2023
1 parent 5a33afb commit f82700b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/pywarpx/WarpX.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def create_argv_list(self, **kw):
def init(self, mpi_comm=None, **kw):
# note: argv[0] needs to be an absolute path so it works with AMReX backtraces
# https://github.com/AMReX-Codes/amrex/issues/3435
argv = [sys.executable] + sys.argv + self.create_argv_list(**kw)
argv = [sys.executable] + self.create_argv_list(**kw)
libwarpx.initialize(argv, mpi_comm=mpi_comm)

def evolve(self, nsteps=-1):
Expand Down

0 comments on commit f82700b

Please sign in to comment.