Skip to content

Commit

Permalink
Fix PP const
Browse files Browse the repository at this point in the history
  • Loading branch information
hugary1995 committed Jan 23, 2024
1 parent 66400c0 commit b89a880
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion include/postprocessors/SideExtremeMaterialProperty.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ class SideExtremeMaterialProperty : public SidePostprocessor

virtual void initialize() override;
virtual void execute() override;
virtual Real getValue() override;
virtual void finalize() override;
virtual void threadJoin(const UserObject & y) override;
virtual Real getValue() const override;

protected:
const MaterialProperty<Real> & _mat_prop;
Expand Down
11 changes: 8 additions & 3 deletions src/postprocessors/SideExtremeMaterialProperty.C
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ SideExtremeMaterialProperty::execute()
}
}

Real
SideExtremeMaterialProperty::getValue()
void
SideExtremeMaterialProperty::finalize()
{
switch (_type)
{
Expand All @@ -73,7 +73,6 @@ SideExtremeMaterialProperty::getValue()
gatherMin(_curr_value);
break;
}
return _curr_value;
}

void
Expand All @@ -90,3 +89,9 @@ SideExtremeMaterialProperty::threadJoin(const UserObject & y)
break;
}
}

Real
SideExtremeMaterialProperty::getValue() const
{
return _curr_value;
}

0 comments on commit b89a880

Please sign in to comment.