Skip to content

Commit

Permalink
Make Absorb virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke authored Mar 9, 2024
1 parent aa56212 commit 887c29f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Material: public Resource {
double threshold = eps_rsrc());

/// Combines material mat with this one. mat's quantity becomes zero.
void Absorb(Ptr mat);
virtual void Absorb(Ptr mat);

/// Changes the material's composition to c without changing its mass. Use
/// this method for things like converting fresh to spent fuel via burning in
Expand Down

0 comments on commit 887c29f

Please sign in to comment.