diff --git a/dune/microstructure/energies/discretekirchhoffbendingenergyprestrained.hh b/dune/microstructure/energies/discretekirchhoffbendingenergyprestrained.hh index c9f7fdae937f264a507495ae7007861db4341b83..757e4d60131d85b1ff2e151c2c48922e7394ccff 100644 --- a/dune/microstructure/energies/discretekirchhoffbendingenergyprestrained.hh +++ b/dune/microstructure/energies/discretekirchhoffbendingenergyprestrained.hh @@ -621,7 +621,7 @@ namespace Dune::GFE // microProblem_.insert({(currentPhase-1),std::make_shared<MicroProblem>(LocalMicrostructureClass_[(currentPhase-1)](),parameterSet_, module_)}); // (microProblem_[(currentPhase-1)])->getEffectiveQuantities(Beff_[(currentPhase-1)],Qhom_[(currentPhase-1)]); //this doesnt work in const-method?! - auto currentMicroProblem = std::make_shared<MicroProblem>(LocalMicrostructureClass_[(currentPhase-1)](),parameterSet_, module_); + auto currentMicroProblem = std::make_shared<MicroProblem>(LocalMicrostructureClass_[(currentPhase-1)](element.geometry().global(quadPos)),parameterSet_, module_); currentMicroProblem->getEffectiveQuantities(Beff_[(currentPhase-1)],Qhom_[(currentPhase-1)]); // auto microProblem = microProblem_.find(currentPhase);