Skip to content

Commit

Permalink
Fixed compilation without MPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Olaf Lenz committed Jul 23, 2014
1 parent d350be3 commit ad4297c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion maintainer/find_missing_header.sh
Expand Up @@ -57,5 +57,7 @@ else
fi
echo


if [ -n "$nolicense" ] || [ -n "$missing_current_copyright" ]; then
exit 1
fi

2 changes: 1 addition & 1 deletion maintainer/update_header.sh
@@ -1,4 +1,4 @@
# Copyright (C) 2012,2013 Olaf Lenz
# Copyright (C) 2012,2013,2014 Olaf Lenz
#
# This file is part of ESPResSo.
#
Expand Down
1 change: 1 addition & 0 deletions src/core/energy.cpp
Expand Up @@ -54,6 +54,7 @@ void energy_calc(double *result)
return;

init_energies(&energy);

#ifdef CUDA
clear_energy_on_GPU();
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/core/initialize.cpp
Expand Up @@ -228,11 +228,11 @@ void on_observable_calc()
EVENT_TRACE(fprintf(stderr, "%d: on_observable_calc\n", this_node));
/* Prepare particle structure: Communication step: number of ghosts and ghost information */

if(resort_particles)
if (resort_particles)
cells_resort_particles(CELL_GLOBAL_EXCHANGE);

#ifdef ELECTROSTATICS
if(reinit_electrostatics) {
if (reinit_electrostatics) {
EVENT_TRACE(fprintf(stderr, "%d: reinit_electrostatics\n", this_node));
switch (coulomb.method) {
#ifdef P3M
Expand Down
2 changes: 1 addition & 1 deletion src/python/espressomd/Makefile.am
Expand Up @@ -25,7 +25,7 @@ AM_LDFLAGS = $(PYTHON_LDFLAGS) -module -avoid-version -no-undefined
LIBS = $(top_builddir)/src/core/libEspresso.la @LIBS@

if MPI_FAKE
AM_CPPFLAGS += -I$(top_srcdir)/src/mpifake
AM_CPPFLAGS += -I$(top_srcdir)/src/core/mpifake
endif

# Build rules for cython
Expand Down
3 changes: 2 additions & 1 deletion testsuite/lj.tcl
Expand Up @@ -47,7 +47,6 @@ proc write_data {file} {
close $f
}


if { [catch {
read_data "lj_system.data"

Expand All @@ -60,6 +59,7 @@ if { [catch {
inter 0 0 lennard-jones 1.0 1.0 1.12246
inter 1 1 lennard-jones 1.3 0.5 2 auto 0.0
inter 0 1 lennard-jones 2.2 1.0 1.12246 0.0 0.5

integrate 0

# here you can create the necessary snapshot
Expand All @@ -74,6 +74,7 @@ if { [catch {
set toteng [analyze energy total]
set totprs [analyze pressure total]


if { [expr abs($toteng - $cureng)] > $epsilon } {
error "system has unwanted energy contributions of [format %e [expr $toteng - $cureng]]"
}
Expand Down

0 comments on commit ad4297c

Please sign in to comment.