diff --git a/extra_packages/extra-materials/src/material_damage/material_damage_iterative_non_local.cc b/extra_packages/extra-materials/src/material_damage/material_damage_iterative_non_local.cc index 5c0102369..485abb338 100644 --- a/extra_packages/extra-materials/src/material_damage/material_damage_iterative_non_local.cc +++ b/extra_packages/extra-materials/src/material_damage/material_damage_iterative_non_local.cc @@ -1,40 +1,40 @@ /** * @file material_damage_iterative.cc * * @author Aurelia Isabel Cuba Ramos * * * @brief Implementation of MaterialDamageIterativeNonLocal * * @section LICENSE * * Copyright (©) 2010-2012, 2014 EPFL (Ecole Polytechnique Fédérale de Lausanne) * Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides) * */ /* -------------------------------------------------------------------------- */ #include "material_damage_iterative_non_local.hh" namespace akantu { /* -------------------------------------------------------------------------- */ template void MaterialDamageIterativeNonLocal::computeNonLocalStresses(GhostType ghost_type) { AKANTU_DEBUG_IN(); /// reset normalized maximum equivalent stress if(ghost_type==_not_ghost) this->norm_max_equivalent_stress = 0; MaterialDamageIterativeNonLocalParent::computeNonLocalStresses(ghost_type); /// find global Gauss point with highest stress - StaticCommunicator & comm = akantu::StaticCommunicator::getStaticCommunicator(); - comm.allReduce(&(this->norm_max_equivalent_stress), 1, _so_max); + const auto & comm = this->model.getMesh().getCommunicator(); + comm.allReduce(this->norm_max_equivalent_stress, SynchronizerOperation::_max); AKANTU_DEBUG_OUT(); } /* -------------------------------------------------------------------------- */ -INSTANTIATE_MATERIAL(MaterialDamageIterativeNonLocal); +INSTANTIATE_MATERIAL(damage_iterative_non_local, MaterialDamageIterativeNonLocal); } // namespace akantu