Skip to content

Commit

Permalink
Merge pull request #565 from Xiangyu-Hu/fix/using_identifier_for_cons…
Browse files Browse the repository at this point in the history
…truction

this should work for body and body parts
  • Loading branch information
Lisu-lisa authored Apr 18, 2024
2 parents e30134b + 71d4c3e commit 06ff81a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class UpperFrontInAxisDirection : public BaseLocalDynamicsReduce<ReduceMax, Dyna

public:
explicit UpperFrontInAxisDirection(DynamicsIdentifier &identifier, const std::string &name, int axis = lastAxis)
: BaseLocalDynamicsReduce<ReduceMax, BodyPartByCell>(identifier),
: BaseLocalDynamicsReduce<ReduceMax, DynamicsIdentifier>(identifier),
GeneralDataDelegateSimple(identifier.getSPHBody()), axis_(axis), pos_(particles_->pos_)
{
this->quantity_name_ = name;
Expand Down

0 comments on commit 06ff81a

Please sign in to comment.