Skip to content
Snippets Groups Projects
Commit ead4efa6 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

print out useful info on running code

parent dc72294a
No related branches found
No related tags found
No related merge requests found
...@@ -190,8 +190,10 @@ class code(base): ...@@ -190,8 +190,10 @@ class code(base):
elif self.host_info['type'] == 'pc': elif self.host_info['type'] == 'pc':
os.chdir(self.work_dir) os.chdir(self.work_dir)
os.environ['LD_LIBRARY_PATH'] += ':{0}'.format(bfps.lib_dir) os.environ['LD_LIBRARY_PATH'] += ':{0}'.format(bfps.lib_dir)
print('added to LD_LIBRARY_PATH the location {0}'.format(bfps.lib_dir))
for j in range(njobs): for j in range(njobs):
suffix = self.simname + '_{0}'.format(iter0 + j*self.parameters['niter_todo']) suffix = self.simname + '_{0}'.format(iter0 + j*self.parameters['niter_todo'])
print('running code with command\n' + ' '.join(command_atoms))
subprocess.call(command_atoms, subprocess.call(command_atoms,
stdout = open(out_file + '_' + suffix, 'w'), stdout = open(out_file + '_' + suffix, 'w'),
stderr = open(err_file + '_' + suffix, 'w')) stderr = open(err_file + '_' + suffix, 'w'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment