Skip to content

Commit

Permalink
Fixed solver by changing order of temp b.c. and temp gather
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloseleson authored and streeve committed Nov 6, 2024
1 parent 0e4cc00 commit 0be8643
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/CabanaPD_Solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,15 @@ class SolverElastic
computeHeatTransfer( *heat_transfer, *particles, *neighbors,
neigh_iter_tag{}, dt );
}
if constexpr ( is_temperature_dependent<
typename force_model_type::thermal_type>::value )
comm->gatherTemperature();

// Add non-force boundary condition.
if ( !boundary_condition.forceUpdate() )
boundary_condition.apply( exec_space(), *particles, step * dt );

if constexpr ( is_temperature_dependent<
typename force_model_type::thermal_type>::value )
comm->gatherTemperature();

// Compute internal forces.
updateForce();

Expand Down

0 comments on commit 0be8643

Please sign in to comment.