@@ -51,11 +51,11 @@ class Solid(cph.Phase):
5151
5252 """
5353
54- def __init__ (self , calculation = None , simfolder = None , log_to_screen = False ):
54+ def __init__ (self , calculation = None , simfolder = None , log_to_screen = False , lmp = None ):
5555
5656 # call base class
5757 super ().__init__ (
58- calculation = calculation , simfolder = simfolder , log_to_screen = log_to_screen
58+ calculation = calculation , simfolder = simfolder , log_to_screen = log_to_screen , lmp = lmp ,
5959 )
6060
6161 def run_spring_constant_convergence (self , lmp ):
@@ -236,12 +236,13 @@ def run_interactive_averaging(self):
236236 """
237237
238238 lmp = ph .create_object (
239- self .cores ,
240- self .simfolder ,
241- self .calc .md .timestep ,
242- self .calc .md .cmdargs ,
243- init_commands = self .calc .md .init_commands ,
239+ cores = self .cores ,
240+ directory = self .simfolder ,
241+ timestep = self .calc .md .timestep ,
242+ cmdargs = self .calc .md .cmdargs ,
243+ init_commands = self .calc .md .init_commands ,
244244 script_mode = self .calc .script_mode ,
245+ lmp = self ._lmp ,
245246 )
246247
247248 # set up potential
@@ -324,12 +325,13 @@ def run_minimal_averaging(self):
324325 At the end of the run, the averaged box dimensions are calculated.
325326 """
326327 lmp = ph .create_object (
327- self .cores ,
328- self .simfolder ,
329- self .calc .md .timestep ,
330- self .calc .md .cmdargs ,
331- init_commands = self .calc .md .init_commands ,
328+ cores = self .cores ,
329+ directory = self .simfolder ,
330+ timestep = self .calc .md .timestep ,
331+ cmdargs = self .calc .md .cmdargs ,
332+ init_commands = self .calc .md .init_commands ,
332333 script_mode = self .calc .script_mode ,
334+ lmp = self ._lmp ,
333335 )
334336
335337 # set up potential
@@ -407,12 +409,13 @@ def run_integration(self, iteration=1):
407409 the lambda parameter. See algorithm 4 in publication.
408410 """
409411 lmp = ph .create_object (
410- self .cores ,
411- self .simfolder ,
412- self .calc .md .timestep ,
413- self .calc .md .cmdargs ,
414- init_commands = self .calc .md .init_commands ,
412+ cores = self .cores ,
413+ directory = self .simfolder ,
414+ timestep = self .calc .md .timestep ,
415+ cmdargs = self .calc .md .cmdargs ,
416+ init_commands = self .calc .md .init_commands ,
415417 script_mode = self .calc .script_mode ,
418+ lmp = self ._lmp ,
416419 )
417420
418421 # set up potential
0 commit comments