Skip to content

Commit

Permalink
Merge pull request espressomd#2349 from KonradBreitsprecher/bonded_co…
Browse files Browse the repository at this point in the history
…ulomb_guards

added P3M guard for bonded_coulomb_p3m_sr
  • Loading branch information
fweik authored and RudolfWeeber committed Oct 29, 2018
1 parent bd77ae2 commit 9261532
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/core/bonded_coulomb_p3m_sr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "bonded_coulomb_p3m_sr.hpp"
#include "communication.hpp"

#ifdef ELECTROSTATICS
#ifdef P3M

int bonded_coulomb_p3m_sr_set_params(int bond_type, double q1q2) {
if (bond_type < 0)
Expand Down
7 changes: 3 additions & 4 deletions src/python/espressomd/interactions.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -521,15 +521,11 @@ cdef extern from "thermalized_bond.hpp":
int thermalized_bond_set_params(int bond_type, double temp_com, double gamma_com, double temp_distance, double gamma_distance, double r_cut)
cdef extern from "bonded_coulomb.hpp":
int bonded_coulomb_set_params(int bond_type, double prefactor)
cdef extern from "bonded_coulomb_p3m_sr.hpp":
int bonded_coulomb_p3m_sr_set_params(int bond_type, double q1q2)


cdef extern from "immersed_boundary/ImmersedBoundaries.hpp":
cppclass ImmersedBoundaries:
void volume_conservation_set_params(const int bond_type, const int softID, const double kappaV)


cdef extern from "immersed_boundary/ibm_triel.hpp":
int IBM_Triel_SetParams(const int bond_type, const int ind1, const int ind2, const int ind3, const double max, const tElasticLaw elasticLaw, const double k1, const double k2)
cdef extern from "immersed_boundary/ibm_tribend.hpp":
Expand All @@ -550,6 +546,9 @@ IF ELECTROSTATICS:
cdef extern from "bonded_coulomb.hpp":
int bonded_coulomb_set_params(int bond_type, double prefactor)

IF P3M:
cdef extern from "bonded_interactions/bonded_coulomb_p3m_sr.hpp":
int bonded_coulomb_p3m_sr_set_params(int bond_type, double q1q2)

cdef extern from "interaction_data.hpp":
int virtual_set_params(int bond_type)
Expand Down

0 comments on commit 9261532

Please sign in to comment.