Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
added subprocess call to run sim
  • Loading branch information
daminton committed Nov 14, 2022
1 parent 18dd938 commit 44f3b40
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions python/swiftest/swiftest/simulation_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,7 @@ def run(self,**kwargs):

print(f"Running a {self.codename} {self.integrator} run from tstart={self.param['TSTART']} {self.TU_name} to tstop={self.param['TSTOP']} {self.TU_name}")

#term_output = subprocess.run([self.driver_executable, self.integrator, self.param_file], capture_output=True)

# print(parameters['ncount'], ' Calling FORTRAN routine')
# with subprocess.Popen([parameters['workingdir']+'CTEM'], stdout=subprocess.PIPE, bufsize=1,universal_newlines=True) as p:
# for line in p.stdout:
# print(line, end='')
subprocess.run([self.driver_executable, self.integrator, self.param_file], capture_output=True)

def _get_valid_arg_list(self, arg_list: str | List[str] | None = None, valid_var: Dict | None = None):
"""
Expand Down

0 comments on commit 44f3b40

Please sign in to comment.