Skip to content

Too Much Coupling to SOMD #11

@fjclark

Description

@fjclark

A3FE is currently too coupled to SOMD. In preparation for extending support to GROMACS, we should reduce this coupling. Specifically, we should:

  • 1.Remove the run_somd.sh file, from which the SLURM options are read. Replace with a Pydantic SlurmConfig class which can be configured in the code, or read from a yaml/json file if not supplied.
  • 2. Remove the template_config.cfg. As above, replace with a Pydantic SomdConfig class (which should be derived from a general EngineConfig class which can be configured in the code, or else read from a yaml/json file if not supplied
  • 3. Try and move any engine-specific logic out of the run classes. Currently, a few are contaminated by SOMD-specific logic
  • 4. Update defaults to be engine-specific. Probably do this by having dictionaries of defaults with engines as keys. Store the engine as a property of the simulation runner. This will allow easier GROMACS integration.
  • 5. Add pre-commit hooks to enforce formatting etc.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions