10
0
mirror of https://gitlab.com/scemama/eplf synced 2024-10-31 19:23:55 +01:00

eplf_edit

This commit is contained in:
Anthony Scemama 2010-06-28 11:50:03 +02:00
parent 94ac846d36
commit 7f41a82af0

View File

@ -103,29 +103,6 @@ class GridEditor(Editor):
self.opposite = self.inp.opposite
self.step_size = self.inp.step_size
self.point_num = self.inp.point_num
# if self.origin is None:
# self.origin = [ 0., 0., 0. ]
# for l in xrange(3):
# self.origin[l] = self.inp.nucl_coord[l][1]
# for i in self.inp.nucl_coord[l]:
# self.origin[l] = min(self.origin[l],i)
# self.origin[l] -= 4.
# if self.opposite is None:
# self.opposite = [ 0., 0., 0. ]
# for l in xrange(3):
# self.opposite[l] = self.inp.nucl_coord[l][1]
# for i in self.inp.nucl_coord[l]:
# self.opposite[l] = max(self.opposite[l],i)
# self.opposite[l] += 4.
# if self.step_size is None:
# self.step_size = [ 0., 0., 0. ]
# for l in xrange(3):
# self.step_size[l] = (self.opposite[l] - self.origin[l])/float(self.point_num[l])
# self.inp.point_num = self.point_num
# self.inp.origin = self.origin
# self.inp.opposite = self.opposite
# self.inp.step_size = self.step_size
edit_temp_file(self.inp,self.write_grid_file,self.read_grid_file)
def write_grid_file(self,file,inp):
@ -291,7 +268,7 @@ $RUNCOMMAND
""".lstrip()
command = "${EPLF_PATH}/bin/eplf %s"%(inp.name)
if inp.has_mpi:
command = "${MPIRUN} -np %d "%(inp.nproc)+command
command = "${EPLF_MPIRUN} -np %d "%(inp.nproc)+command
buffer = buffer.replace("$RUNCOMMAND",command)
print >>file, buffer
file.close()