Skip to content
Snippets Groups Projects
Commit 99cbc272 authored by andy's avatar andy
Browse files

ENH: fieldSources - added ability to apply source to eqn with specified name

parent 3a4d247c
Branches
Tags
No related merge requests found
......@@ -100,6 +100,10 @@ public:
template<class Type>
void apply(fvMatrix<Type>& eqn);
//- Apply sources to equation with specified name
template<class Type>
void apply(fvMatrix<Type>& eqn, const word& name);
// I-O
......
......@@ -28,9 +28,14 @@ License
template<class Type>
void Foam::basicSourceList::apply(fvMatrix<Type>& eqn)
{
checkApplied();
apply(eqn, eqn.psi().name());
}
const word& fieldName = eqn.psi().name();
template<class Type>
void Foam::basicSourceList::apply(fvMatrix<Type>& eqn, const word& fieldName)
{
checkApplied();
forAll(*this, i)
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment