Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
scafacos: Fix build w/o scafacos.
  • Loading branch information
fweik committed Feb 10, 2016
1 parent 4694ee1 commit 4dfda83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/core/scafacos.cpp
Expand Up @@ -44,15 +44,15 @@
#include "interaction_data.hpp"
#include "electrostatics/scafacos/Scafacos.hpp"

#endif
#endif /* SCAFACOS */

/** This file contains the c-like interface for Scafacos */

#ifdef SCAFACOS

namespace Electrostatics {
namespace Scafacos {

#ifdef SCAFACOS

/** Get available scafacos methods */
std::list<std::string> available_methods() {
return Scafacos::available_methods();
Expand Down Expand Up @@ -250,7 +250,7 @@ void set_parameters(const std::string &method, const std::string &params) {
}
}

#endif
#endif /* SCAFACOS */

void mpi_scafacos_set_parameters_slave(int n_method, int n_params) {
#ifdef SCAFACOS
Expand All @@ -266,6 +266,5 @@ void mpi_scafacos_set_parameters_slave(int n_method, int n_params) {
MPI_Bcast(&(*params.begin()), n_params, MPI_CHAR, 0, comm_cart);

set_params_safe(method, params);
#endif
#endif /* SCAFACOS */
}

2 changes: 1 addition & 1 deletion src/core/scafacos.hpp
Expand Up @@ -31,7 +31,7 @@
#include <string>

#include "particle_data.hpp"
#endif
#endif /* SCAFACOS */

namespace Electrostatics {
namespace Scafacos {
Expand Down

0 comments on commit 4dfda83

Please sign in to comment.