Skip to content

Commit

Permalink
Only use basename as target to copy seed and config (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmenke authored and the-hampel committed Jan 16, 2024
1 parent 651b556 commit 216232a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/solid_dmft/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def main(argv=sys.argv):
# Copies h5 archive and config file to subfolder if are not there
for file in (general_params['seedname']+'.h5',
general_params['config_file']):
if not os.path.isfile(general_params['jobname']+'/'+file):
shutil.copyfile(file, general_params['jobname']+'/'+file)
if not os.path.isfile(general_params['jobname']+'/'+os.path.basename(file)):
shutil.copyfile(file, general_params['jobname']+'/'+os.path.basename(file))
mpi.barrier()

# Runs dmft_cycle
Expand Down

0 comments on commit 216232a

Please sign in to comment.