Skip to content

[RFC] Refactor atom groups read data - #953

Open
HanatoK wants to merge 5 commits into
Colvars:masterfrom
HanatoK:refactor_atom_groups_read_data
Open

[RFC] Refactor atom groups read data#953
HanatoK wants to merge 5 commits into
Colvars:masterfrom
HanatoK:refactor_atom_groups_read_data

Conversation

@HanatoK

@HanatoK HanatoK commented Aug 13, 2026

Copy link
Copy Markdown
Member

This PR implements the idea discussed in #938 (comment), and also refactors the update of lattice (boundary condition) so that boundaries_ is updated only once in the GPU code path. This PR also lays the foundation of reusing atom groups.

This PR depends on #940. Sadly I still haven't figured out how to make a stacked PR...

@HanatoK
HanatoK force-pushed the refactor_atom_groups_read_data branch from e19dc7c to ab69a1d Compare August 17, 2026 16:41
@HanatoK
HanatoK marked this pull request as ready for review August 18, 2026 19:41
@HanatoK HanatoK mentioned this pull request Aug 19, 2026
@HanatoK HanatoK self-assigned this Aug 20, 2026
Comment thread src/colvarmodule.cpp Outdated
@@ -447,10 +447,6 @@ int colvarmodule::parse_global_params(std::string const &conf)
return COLVARS_INPUT_ERROR;
} else {
this->log("EXPERIMENTAL GPU parallelism will be used. GPU information:\n");

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

TODO: see #940 (comment) to remove this line.

This commit refactors the read_data and read_data_gpu of atom groups.
The atom groups may be referenced by different CVCs in the future.
@HanatoK
HanatoK force-pushed the refactor_atom_groups_read_data branch from ab69a1d to f65ae75 Compare September 1, 2026 21:43
@HanatoK
HanatoK marked this pull request as draft September 1, 2026 22:15
@HanatoK

HanatoK commented Sep 1, 2026

Copy link
Copy Markdown
Member Author

I will look into the test failures in https://github.com/HanatoK/colvars/actions/runs/33562573020/job/100038292990 tomorrow.

@HanatoK
HanatoK marked this pull request as ready for review September 2, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant