ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Propagation.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2010-2023 The ESPResSo project
3 * Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009,2010
4 * Max-Planck-Institute for Polymer Research, Theory Group
5 *
6 * This file is part of ESPResSo.
7 *
8 * ESPResSo is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * ESPResSo is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
24#include "PropagationMode.hpp"
25
27public:
33 /** If true, forces will be recalculated before the next integration. */
34 bool recalc_forces = true;
35
36 void update_default_propagation(int thermo_switch);
37
38 template <typename Particle>
39 bool should_propagate_with(Particle const &p, int mode) const {
40 return (p.propagation() & mode) or
41 ((default_propagation & mode) and
43 }
44
45 void set_integ_switch(int value) {
46 integ_switch = value;
47 recalc_forces = true;
48 }
49};
@ INTEG_METHOD_NVT
void set_integ_switch(int value)
bool recalc_forces
If true, forces will be recalculated before the next integration.
int lb_skipped_md_steps
int default_propagation
void update_default_propagation(int thermo_switch)
int ek_skipped_md_steps
bool should_propagate_with(Particle const &p, int mode) const
int used_propagations
Struct holding all information for one particle.
Definition Particle.hpp:395
auto const & propagation() const
Definition Particle.hpp:421