MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / addField

Method addField

SPlisHSPlasH/FluidModel.cpp:694–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692
693
694void FluidModel::addField(const FieldDescription &field)
695{
696 m_fields.push_back(field);
697 std::sort(m_fields.begin(), m_fields.end(), [](FieldDescription& i, FieldDescription& j) -> bool { if (i.methodName == j.methodName) return (i.name < j.name); else return (i.methodName < j.methodName); });
698}
699
700void FluidModel::removeFieldByName(const std::string &fieldName)
701{

Callers 15

TimeStepPFMethod · 0.80
TimeStepWCSPHMethod · 0.80
DebugToolsMethod · 0.80
Elasticity_Kee2023Method · 0.80
Elasticity_Becker2009Method · 0.80
Elasticity_Peer2018Method · 0.80
TimeStepDFSPHMethod · 0.80
TimeStepPBFMethod · 0.80
TimeStepIISPHMethod · 0.80
Viscosity_Peer2016Method · 0.80

Calls 3

push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected