Skip to content

Commit

Permalink
Motion: Simplify NPT_IA ensemble
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Mar 13, 2022
1 parent a564af0 commit ff401dc
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 1,470 deletions.
360 changes: 20 additions & 340 deletions src/motion/integrator.F

Large diffs are not rendered by default.

245 changes: 14 additions & 231 deletions src/motion/integrator_utils.F

Large diffs are not rendered by default.

10 changes: 3 additions & 7 deletions src/motion/velocity_verlet_control.F
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ MODULE velocity_verlet_control
nph_uniaxial_damped_ensemble, nph_uniaxial_ensemble, npt_f_ensemble, npt_i_ensemble, &
npt_ia_ensemble, nve_ensemble, nvt_adiabatic_ensemble, nvt_ensemble, reftraj_ensemble
USE integrator, ONLY: &
isokin, langevin, nph_uniaxial, nph_uniaxial_damped, npt_f, npt_i, npt_ia, nve, nve_respa, &
nvt, nvt_adiabatic, reftraj
isokin, langevin, nph_uniaxial, nph_uniaxial_damped, npt_f, npt_i, nve, nve_respa, nvt, &
nvt_adiabatic, reftraj
USE md_environment_types, ONLY: get_md_env,&
md_environment_type
USE simpar_types, ONLY: simpar_type
Expand Down Expand Up @@ -79,10 +79,8 @@ SUBROUTINE velocity_verlet(md_env, globenv)
CALL nvt_adiabatic(md_env, globenv)
CASE (isokin_ensemble)
CALL isokin(md_env)
CASE (npt_i_ensemble)
CASE (npt_i_ensemble, npt_ia_ensemble, npe_i_ensemble)
CALL npt_i(md_env, globenv)
CASE (npt_ia_ensemble)
CALL npt_ia(md_env, globenv)
CASE (npt_f_ensemble)
CALL npt_f(md_env, globenv)
CASE (nph_uniaxial_ensemble)
Expand All @@ -95,8 +93,6 @@ SUBROUTINE velocity_verlet(md_env, globenv)
CALL langevin(md_env)
CASE (npe_f_ensemble)
CALL npt_f(md_env, globenv)
CASE (npe_i_ensemble)
CALL npt_i(md_env, globenv)
END SELECT

CALL timestop(handle)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
# e.g. 0 means do not compare anything, running is enough
# 1 compares the last total energy in the file
# for details see cp2k/tools/do_regtest
test_gal19.inp 11 8e-12 -2.717713309171477
test_gal21.inp 11 8e-12 -2.729695004946153
test_npt_ia.inp 97 1e-6 3.350000
#EOF
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
&GLOBAL
PROJECT md_gal
PROJECT md_gal19
RUN_TYPE energy
&END GLOBAL

Expand Down Expand Up @@ -55,7 +55,7 @@
PERIODIC XYZ
&END CELL
&COORD
@INCLUDE "coord.inc"
@INCLUDE "coord-gal19.inc"
&END COORD
&TOPOLOGY
&GENERATE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
PERIODIC XYZ
&END CELL
&COORD
@INCLUDE "coord.inc"
@INCLUDE "coord-gal21.inc"
&END COORD
&TOPOLOGY
&GENERATE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
&GLOBAL
PROJECT test_barostat
PROJECT md_npt_ia
RUN_TYPE md
&PRINT DEBUG
&END
Expand Down Expand Up @@ -97,7 +97,7 @@
PERIODIC XYZ
&END CELL
&COORD
@INCLUDE "coord.inc"
@INCLUDE "coord-npt_ia.inc"
&END COORD
&TOPOLOGY
&GENERATE
Expand Down
7 changes: 0 additions & 7 deletions tests/Fist/regtest-gal19/TEST_FILES

This file was deleted.

0 comments on commit ff401dc

Please sign in to comment.