Skip to content

Commit

Permalink
Merge pull request #2406 from KaiSzuttor/features
Browse files Browse the repository at this point in the history
build in container without external dependencies.
  • Loading branch information
KaiSzuttor authored Dec 17, 2018
2 parents d608a14 + bbb1b47 commit 4a7cafd
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 10 deletions.
10 changes: 10 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,16 @@ empty:
- linux
- cuda

ubuntu:wo-dependencies:
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/$CI_JOB_NAME
script:
- export myconfig=maxset make_check=false
- bash maintainer/CI/build_cmake.sh
tags:
- docker
- linux

### Builds with ROCm

rocm-maxset:
Expand Down
3 changes: 3 additions & 0 deletions maintainer/configs/maxset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define SOFT_SPHERE
#define INTER_RF
#define OVERLAPPED

#ifdef P3M
#define THOLE
#endif

#define BOND_ANGLE

Expand Down
4 changes: 2 additions & 2 deletions src/core/communication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,7 @@ void mpi_send_fluid_populations_slave(int node, int index) {
/****************************************************/

void mpi_bcast_max_mu() {
#ifdef DIPOLES
#if defined(DIPOLES) and defined(DP3M)
mpi_call(mpi_bcast_max_mu_slave, -1, 0);

calc_mu_max();
Expand All @@ -2054,7 +2054,7 @@ void mpi_bcast_max_mu() {
}

void mpi_bcast_max_mu_slave(int node, int dummy) {
#ifdef DIPOLES
#if defined(DIPOLES) and defined(DP3M)

calc_mu_max();

Expand Down
2 changes: 1 addition & 1 deletion src/core/electrostatics_magnetostatics/mdlc_correction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include "particle_data.hpp"
#include "utils.hpp"

#ifdef DIPOLES
#if defined(DIPOLES) && defined(DP3M)

DLC_struct dlc_params = {1e100, 0, 0, 0, 0};

Expand Down
2 changes: 1 addition & 1 deletion src/core/electrostatics_magnetostatics/mdlc_correction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

#include "config.hpp"

#ifdef DIPOLES
#if defined(DIPOLES) && defined(DP3M)

/** parameters for the MDLC method */
typedef struct {
Expand Down
2 changes: 2 additions & 0 deletions src/core/energy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,12 @@ void calc_long_range_energies() {
case DIPOLAR_ALL_WITH_ALL_AND_NO_REPLICA:
energy.dipolar[1] = dawaanr_calculations(0, 1);
break;
#ifdef DP3M
case DIPOLAR_MDLC_DS:
energy.dipolar[1] = magnetic_dipolar_direct_sum_calculations(0, 1);
energy.dipolar[2] = add_mdlc_energy_corrections();
break;
#endif
case DIPOLAR_DS:
energy.dipolar[1] = magnetic_dipolar_direct_sum_calculations(0, 1);
break;
Expand Down
4 changes: 3 additions & 1 deletion src/core/forces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,11 @@ void calc_long_range_forces() {
case DIPOLAR_ALL_WITH_ALL_AND_NO_REPLICA:
dawaanr_calculations(1, 0);
break;
#ifdef DP3M
case DIPOLAR_MDLC_DS:
add_mdlc_force_corrections();
// fall through
// fall through
#endif
case DIPOLAR_DS:
magnetic_dipolar_direct_sum_calculations(1, 0);
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,17 +472,15 @@ int interactions_sanity_checks() {
}
#endif /* ifdef ELECTROSTATICS */

#ifdef DIPOLES
#if defined(DIPOLES) and defined(DP3M)
switch (coulomb.Dmethod) {
#ifdef DP3M
case DIPOLAR_MDLC_P3M:
if (mdlc_sanity_checks())
state = 0; // fall through
case DIPOLAR_P3M:
if (dp3m_sanity_checks())
state = 0;
break;
#endif
case DIPOLAR_MDLC_DS:
if (mdlc_sanity_checks())
state = 0; // fall through
Expand Down
2 changes: 1 addition & 1 deletion src/python/espressomd/magnetostatic_extensions.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ include "myconfig.pxi"
from espressomd.system cimport *
from espressomd.utils cimport *

IF DIPOLES == 1:
IF DIPOLES and DP3M:

cdef extern from "electrostatics_magnetostatics/mdlc_correction.hpp":
ctypedef struct dlc_struct "DLC_struct":
Expand Down
2 changes: 1 addition & 1 deletion src/python/espressomd/magnetostatic_extensions.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ from . cimport utils
include "myconfig.pxi"
from .actors import Actor

IF DIPOLES == 1:
IF DIPOLES and DP3M:
class MagnetostaticExtension(Actor):

pass
Expand Down

0 comments on commit 4a7cafd

Please sign in to comment.