Skip to content

Commit

Permalink
prnt pfator in log, fixes stfc#130
Browse files Browse the repository at this point in the history
  • Loading branch information
Alin Marin Elena committed May 4, 2024
1 parent 41bf1f4 commit 5e9350f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions janus_core/calculations/md.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,9 +692,13 @@ def __init__(
super().__init__(ensemble=ensemble, file_prefix=file_prefix, *args, **kwargs)

self.ttime = thermostat_time * units.fs
scaled_bulk_modulus = bulk_modulus * units.GPa

if barostat_time:
pfactor = (barostat_time * units.fs) ** 2 * scaled_bulk_modulus
pfactor = (barostat_time * units.fs) ** 2 * bulk_modulus * units.GPa
if self.logger:
self.logger.info(
"NPT pfactor=%s GPa fs^2", barostat_time**2 * bulk_modulus
)
else:
pfactor = None

Expand Down

0 comments on commit 5e9350f

Please sign in to comment.