ENH: distinguish between compressible/incompressible coded source

- previously had codeAddSup used for both incompressible and
  compressible source terms. However, it was not actually possible to
  use it for compressible sources since any references to the 'rho'
  parameter would cause a compilation error for the incompressible case.

  Added 'codeAddSupRho' to distinguish the compressible case.
  User must supply one or both of them on input.
This commit is contained in:
Mark Olesen
2021-10-25 16:01:18 +02:00
parent 8638d82325
commit fd82f3e47a
6 changed files with 66 additions and 10 deletions

View File

@ -147,7 +147,7 @@ ${typeName}FvOption${SourceType}::addSup
Info<< "${typeName}FvOption${SourceType}::addSup()\n";
}
//{{{ begin code
//{{{ begin code - warn/fatal if not implemented?
${codeAddSup}
//}}} end code
}
@ -163,11 +163,11 @@ ${typeName}FvOption${SourceType}::addSup
{
if (${verbose:-false})
{
Info<< "${typeName}FvOption${SourceType}::addSup()\n";
Info<< "${typeName}FvOption${SourceType}::addSup(rho)\n";
}
//{{{ begin code
${codeAddSup}
//{{{ begin code - warn/fatal if not implemented?
${codeAddSupRho}
//}}} end code
}