Skip to content

Commit

Permalink
Don't strip input state file in GROMACS (pre-2024)
Browse files Browse the repository at this point in the history
GROMACS Mdrun needs a special extension .dat incompatible with
colvarmodule.
Revert commit efac865
  • Loading branch information
HubLot authored and giacomofiorin committed Dec 8, 2023
1 parent 351bfd2 commit 8f40a7a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions gromacs/gromacs-2020.x/colvarproxy_gromacs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ void colvarproxy_gromacs::init(t_inputrec *ir, int64_t step,gmx_mtop_t *mtop,
{
colvars_restart = true;
input_prefix_str = filename_restart;
input_prefix_str.erase(input_prefix_str.rfind(".dat"));
input_prefix_str.erase(input_prefix_str.rfind(".colvars.state"));
// Don't strip the input_prefix_str because colvarmodule.cpp doesn't know that restart file from GROMACS needs the .dat extension.
}

// Retrieve masses and charges from input file
Expand Down
3 changes: 1 addition & 2 deletions gromacs/gromacs-2021.x/colvarproxy_gromacs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ void colvarproxy_gromacs::init(t_inputrec *ir, int64_t step,gmx_mtop_t *mtop,
{
colvars_restart = true;
input_prefix_str = filename_restart;
input_prefix_str.erase(input_prefix_str.rfind(".dat"));
input_prefix_str.erase(input_prefix_str.rfind(".colvars.state"));
// Don't strip the input_prefix_str because colvarmodule.cpp doesn't know that restart file from GROMACS needs the .dat extension.
}

// Retrieve masses and charges from input file
Expand Down
3 changes: 1 addition & 2 deletions gromacs/gromacs-2022.x/colvarproxy_gromacs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ void colvarproxy_gromacs::init(t_inputrec *ir, int64_t step, const gmx_mtop_t &m
{
colvars_restart = true;
input_prefix_str = filename_restart;
input_prefix_str.erase(input_prefix_str.rfind(".dat"));
input_prefix_str.erase(input_prefix_str.rfind(".colvars.state"));
// Don't strip the input_prefix_str because colvarmodule.cpp doesn't know that restart file from GROMACS needs the .dat extension.
}

// Retrieve masses and charges from input file
Expand Down
3 changes: 1 addition & 2 deletions gromacs/gromacs-2023.x/colvarproxy_gromacs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ void colvarproxy_gromacs::init(t_inputrec *ir, int64_t step, const gmx_mtop_t &m
{
colvars_restart = true;
input_prefix_str = filename_restart;
input_prefix_str.erase(input_prefix_str.rfind(".dat"));
input_prefix_str.erase(input_prefix_str.rfind(".colvars.state"));
// Don't strip the input_prefix_str because colvarmodule.cpp doesn't know that restart file from GROMACS needs the .dat extension.
}

// Retrieve masses and charges from input file
Expand Down

0 comments on commit 8f40a7a

Please sign in to comment.