25 assert( std::all_of(localParticleList.cbegin(),
26 localParticleList.cend(),
27 [
this](
int particle){return (particle >= 0 && particle <= numberOfParticles); }) &&
28 "Local particle list is out of range");
31 int localNumberOfParticles= localParticleList.size();
32 std::cout <<
"Creating a local configuration of size = " << localNumberOfParticles << std::endl;
35 int i_localParticle=0;
36 for(
const auto& localParticle : localParticleList)
44 std::cout <<
"Local configuration creation successful" << std::endl;
45 return plocalConfiguration;