Skip to content

Commit

Permalink
fix citations
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc committed Mar 11, 2022
1 parent ab7988b commit a31eb0d
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions calphy/phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,6 @@ def submit_report(self):
else:
self.logger.info("- 10.1016/j.commatsci.2018.12.029")
self.logger.info("- 10.1063/1.4967775")
elif self.calc["mode"] == "ts":
self.logger.info("- 10.1103/PhysRevLett.83.3973")
elif self.calc["mode"] == "mts":
self.logger.info("- 10.1063/1.1420486")


def reversible_scaling(self, iteration=1):
Expand Down Expand Up @@ -416,6 +412,12 @@ def reversible_scaling(self, iteration=1):
#close the object
lmp.close()

self.logger.info("Please cite the following publications:")
if self.calc["mode"] == "mts":
self.logger.info("- 10.1063/1.1420486")
else:
self.logger.info("- 10.1103/PhysRevLett.83.3973")

def integrate_reversible_scaling(self, scale_energy=False, return_values=False):
"""
Perform integration after reversible scaling
Expand All @@ -435,7 +437,7 @@ def integrate_reversible_scaling(self, scale_energy=False, return_values=False):
"""
res = integrate_rs(self.simfolder, self.fe, self.t, self.natoms, p=self.p,
nsims=self.nsims, scale_energy=scale_energy, return_values=return_values)

if return_values:
return res

Expand Down Expand Up @@ -510,6 +512,7 @@ def temperature_scaling(self, iteration=1):
lmp.command("fix f3 all print 1 \"${dU} $(press) $(vol) ${lambda}\" screen no file backward_%d.dat"%iteration)
lmp.command("run %d"%self.options["md"]["ts"])

lmp.close()

def pressure_scaling(self, iteration=1):
"""
Expand Down Expand Up @@ -585,7 +588,11 @@ def pressure_scaling(self, iteration=1):
lmp.command("fix f3 all print 1 \"${dU} ${pp} $(vol) ${lambda}\" screen no file backward_%d.dat"%iteration)
lmp.command("run %d"%self.options["md"]["ts"])


lmp.close()

self.logger.info("Please cite the following publications:")
self.logger.info("- 10.1016/j.commatsci.2022.111275")


def integrate_pressure_scaling(self, return_values=False):
"""
Expand Down

0 comments on commit a31eb0d

Please sign in to comment.