Skip to content

enhance GROMACS easyblock to add support for CP2K QM/MM - #31

Draft
ostueker wants to merge 2 commits into
2023from
gromacs_cp2k_cc2026
Draft

enhance GROMACS easyblock to add support for CP2K QM/MM#31
ostueker wants to merge 2 commits into
2023from
gromacs_cp2k_cc2026

Conversation

@ostueker

Copy link
Copy Markdown
Member

New attempt for GROMACS with CP2K QM/MM support.

@ofisette

Copy link
Copy Markdown

@ostueker, sorry, I’m leaving for a vacation at the end of the day! If you’re not in a hurry, I’ll be happy to have a look during the week of August 17.

# Building with CP2K requires static build w/o gmxapi.
# https://manual.gromacs.org/documentation/2022/install-guide/index.html#building-with-cp2k-qm-mm-support
self.log.info("Building with CP2K QM/MM.")
self.cfg['build_shared_libs'] = False

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't setting this config option be a surprised ? Shouldn't it be a check and error instead of setting the value ?

if build_option('force') and build_option('module_only'):
self.log.info(f"No sub-directory with GROMACS libraries found in installation: {error}")
self.log.info("You are forcing module creation for a non-existent installation!")
elif not self.cfg['build_shared_libs']:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So... if build_shared_libs is False, then it is expected that there is a lib subdirectory ? This is counter-intuitive to me. If true, it warrants a comment

This simplifies configuration logic and error checking.

As enabling CP2K requires static compilation, the module will be
quite different from a "normal" GROMACS, and will not have
* GMXAPI
* libgromacs
* threaded or serial executables (gmx, gmx_d)
@ostueker

Copy link
Copy Markdown
Member Author

@mboisson How about now?

@ostueker
ostueker marked this pull request as draft August 3, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants