Skip to content

Commit

Permalink
compare to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
roiser committed May 24, 2023
1 parent 15b5974 commit eb1bcb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions epochX/cudacpp/gg_tt.mad/bin/internal/gen_ximprove.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,11 @@ def launch(self, to_submit=True, clean=True):
if 'exec_mode' in self.run_card:
exec_mode = self.run_card['exec_mode']

if exec_mode == 0:
if exec_mode == '0':
self.cmd.compile(['madeventfortran'], cwd=Pdir)
elif exec_mode == 1:
elif exec_mode == '1':
self.cmd.compile(['madeventcpp'], cwd=Pdir)
elif exec_mode == 2:
elif exec_mode == '2':
self.cmd.compile(['madeventcuda'], cwd=Pdir)
else:
self.cmd.compile(['all'], cwd=Pdir)
Expand Down
6 changes: 3 additions & 3 deletions epochX/cudacpp/gg_tt.mad/bin/internal/madevent_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -3620,11 +3620,11 @@ def do_refine(self, line):
if 'exec_mode' in self.run_card:
exec_mode = self.run_card['exec_mode']

if exec_mode == 0:
if exec_mode == '0':
self.compile(['madeventfortran'], cwd=Pdir)
elif exec_mode == 1:
elif exec_mode == '1':
self.compile(['madeventcpp'], cwd=Pdir)
elif exec_mode == 2:
elif exec_mode == '2':
self.compile(['madeventcuda'], cwd=Pdir)
else:
self.compile(['all'], cwd=Pdir)
Expand Down

0 comments on commit eb1bcb1

Please # to comment.