Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add time step and kT as parameters to components that use them #4247

Closed
RudolfWeeber opened this issue May 11, 2021 · 0 comments · Fixed by #4264
Closed

Add time step and kT as parameters to components that use them #4247

RudolfWeeber opened this issue May 11, 2021 · 0 comments · Fixed by #4264
Assignees

Comments

@RudolfWeeber
Copy link
Contributor

In preparation for the integrator refactor (#4015):
In order to remove time_step (#3769) and temperature as globals, components that use them should take them as an initialization argument and store their own copy.

This affects e.g.:

  • dpd (time step and temperature)
  • thermalized bonds (tim step and temperature)
  • lb (temperature, time step because of unit conversion)
  • reaciton ensemble (temperature)
  • electrostatics module (no idea, wy. Perhaps Drude)

The best way to identify uses is probably, using and IDE of your choice, to open the headers which define the globals (integrate.hpp and thermostat.hpp), find the definition of the global and use the "find uses" functio of the IDE.

@jngrad jngrad changed the title Add time stepand kT as parameter to components that use them Add time step and kT as parameters to components that use them May 11, 2021
@jngrad jngrad added the Core label May 11, 2021
@jngrad jngrad self-assigned this May 25, 2021
@kodiakhq kodiakhq bot closed this as completed in #4264 May 28, 2021
kodiakhq bot added a commit that referenced this issue May 28, 2021
Fixes #4247

Description of changes:
- reduce usage of the `temperature` and `time_step` globals
- combine the `int fluidstep` and `double fluidstep` static globals into a single static global
- only increment LB RNG during LB integration (changes the thermalization random sequence when `tau != time_step`)
- reduce code duplication, replace raw pointers by references, improve separation of concerns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants