Permalink
Browse files

bcast p_ext as well

  • Loading branch information...
KonradBreitsprecher committed Nov 13, 2017
1 parent 82a9800 commit 766be833da072a837bbcb882a875b394131a3312
Showing with 1 addition and 2 deletions.
  1. +1 −0 src/core/integrate.cpp
  2. +0 −2 src/python/espressomd/electrostatics.pyx
View
@@ -1228,6 +1228,7 @@ int integrate_set_npt_isotropic(double ext_pressure, double piston, int xdir,
integ_switch = INTEG_METHOD_NPT_ISO;
mpi_bcast_parameter(FIELD_INTEG_SWITCH);
mpi_bcast_parameter(FIELD_NPTISO_PISTON);
mpi_bcast_parameter(FIELD_NPTISO_PEXT);
/* broadcast npt geometry information to all nodes */
mpi_bcast_nptiso_geom();
@@ -825,8 +825,6 @@ IF ELECTROSTATICS:
raise ValueError("Dielectric constants should be > 0!")
if self._params["dielectric_contrast_on"] == 1 and (self._params["delta_mid_top"] == default_params["delta_mid_top"] or self._params["delta_mid_bot"] == default_params["delta_mid_bot"]):
raise ValueError("Dielectric constrast not set!")
if self._params["capacitor"] == 1 and self._params["pot_diff"] == default_params["pot_diff"]:
raise ValueError("Potential difference not set!")
if self._params["dielectric"] == 1 and self._params["dielectric_contrast_on"] == 1:
raise ValueError(
"dielectric and dielectric_contrast are mutually exclusive!")

0 comments on commit 766be83

Please sign in to comment.