Skip to content

refactor: completely remove static colvardeps#925

Open
HanatoK wants to merge 11 commits intoColvars:masterfrom
HanatoK:remove_static_colvardeps
Open

refactor: completely remove static colvardeps#925
HanatoK wants to merge 11 commits intoColvars:masterfrom
HanatoK:remove_static_colvardeps

Conversation

@HanatoK
Copy link
Copy Markdown
Member

@HanatoK HanatoK commented Mar 27, 2026

This PR supersedes #924 and completes the removal of static colvarproxy* in #886. Additionally, all colvarproxy_* classes are merged into colvarproxy.

@HanatoK
Copy link
Copy Markdown
Member Author

HanatoK commented Mar 27, 2026

I am still not quite sure if destructor of colvarproxy is correct after merging the colvarproxy_* classes. In addition, I don't know why the destrcutor of colvarmodule is designed to call proxy->reset() while the proxy object is destroying the module object. Also, I don't know why there is no call to Tcl_DeleteInterp while the TCL interpreter can be created by colvarproxy::init_tcl_pointers(). As a result, I mark this PR as draft.

Hi @giacomofiorin! Do you have any ideas about the issues above?

@HanatoK HanatoK marked this pull request as draft March 27, 2026 20:55
HanatoK added 11 commits March 30, 2026 16:15
From the C interface, it is impossible to use the colvarscript class or
even get a pointer to the colvarscript object. The example C code in
C_test.c shows that only an opaque pointer to colvarproxy is available,
so the C functions in extern "C" should get the script object from the
opaque pointer instead of expecting the script object being passed as a
function argument.
This commit also unifies the way of initializing cvmodule in rotation
and rotation_gpu.
@HanatoK HanatoK force-pushed the remove_static_colvardeps branch from 6a366d5 to 836f828 Compare March 30, 2026 21:27
@HanatoK HanatoK marked this pull request as ready for review March 30, 2026 21:41
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