Skip to content

Commit

Permalink
Core: fixed recent changes to Heun and SIB.
Browse files Browse the repository at this point in the history
  • Loading branch information
GPMueller committed Apr 20, 2020
1 parent fcb3efa commit 8ed4aef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/include/engine/Solver_Heun.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void Method_Solver<Solver::Heun>::Iteration ()
// Second step - Corrector
Backend::par::apply( nos, [conf, conf_predictor, f_virtual, f_virtual_predictor] SPIRIT_LAMBDA (int idx) {
conf[idx] = (
conf[idx] + 0.5*( conf[idx] - 0.5*conf[idx].cross(f_virtual[idx]) - conf_predictor[idx].cross(f_virtual_predictor[idx]) )
conf[idx] - 0.5 * ( conf[idx].cross( f_virtual[idx] ) + conf_predictor[idx].cross(f_virtual_predictor[idx]) )
).normalized();
} );
}
Expand Down
4 changes: 2 additions & 2 deletions core/include/engine/Solver_SIB.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ void Method_Solver<Solver::SIB>::Iteration ()
this->Calculate_Force_Virtual(this->configurations, this->forces, this->forces_virtual);
for (int i = 0; i < this->noi; ++i)
{
auto image = *this->systems[i]->spins;
auto predictor = *this->configurations_predictor[i];
auto& image = *this->systems[i]->spins;
auto& predictor = *this->configurations_predictor[i];
Solver_Kernels::sib_transform(image, forces_virtual[i], predictor);

auto imagep = this->systems[i]->spins->data();
Expand Down

0 comments on commit 8ed4aef

Please sign in to comment.