Skip to content

Commit a7c3171

Browse files
committed
reverse scaling temp
1 parent f4ad60b commit a7c3171

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

calphy/phase.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,8 @@ def reversible_scaling(self, iteration=1):
800800
lmp.command("variable fscale equal v_flambda-1.0")
801801
lmp.command("variable bscale equal v_blambda-1.0")
802802
lmp.command("variable one equal 1.0")
803-
lmp.command(f"variable ftemp equal v_flambda*{self.calc._temperature_stop}")
804-
lmp.command(f"variable btemp equal v_blambda*{self.calc._temperature}")
803+
lmp.command(f"variable ftemp equal v_blambda*{self.calc._temperature_stop}")
804+
lmp.command(f"variable btemp equal v_flambda*{self.calc._temperature_stop}")
805805

806806
#set up potential
807807
pc = self.calc.pair_coeff[0]
@@ -865,6 +865,8 @@ def reversible_scaling(self, iteration=1):
865865
lmp.command("variable fscale equal v_flambda-1.0")
866866
lmp.command("variable bscale equal v_blambda-1.0")
867867
lmp.command("variable one equal 1.0")
868+
lmp.command(f"variable ftemp equal v_blambda*{self.calc._temperature_stop}")
869+
lmp.command(f"variable btemp equal v_flambda*{self.calc._temperature_stop}")
868870

869871
lmp.command("pair_style hybrid/scaled v_one %s v_bscale %s"%(self.calc._pair_style_with_options[0], self.calc._pair_style_with_options[0]))
870872
lmp.command("pair_coeff %s"%pcnew1)

0 commit comments

Comments
 (0)