fieldTypes: Using C++11 __VA_ARGS__ functionality created the FOR_ALL_FIELD_TYPES macro
This supports the abstraction of the set of fields from the field code generation macros making it easier to change the set of fields supported by OpenFOAM. This functionality is demonstrated in the updated fvPatchFields macros and will be applied to the rest of the field code generation macros in the future.
Showing
- src/OpenFOAM/db/runTimeSelection/construction/addToRunTimeSelectionTable.H 12 additions, 15 deletions...unTimeSelection/construction/addToRunTimeSelectionTable.H
- src/OpenFOAM/fields/Fields/fieldTypes.H 17 additions, 1 deletionsrc/OpenFOAM/fields/Fields/fieldTypes.H
- src/OpenFOAM/global/debug/registerSwitch.H 1 addition, 4 deletionssrc/OpenFOAM/global/debug/registerSwitch.H
- src/OpenFOAM/include/macros.H 60 additions, 0 deletionssrc/OpenFOAM/include/macros.H
- src/finiteVolume/fields/fvPatchFields/basic/coupled/coupledFvPatchFields.C 2 additions, 2 deletions...fields/fvPatchFields/basic/coupled/coupledFvPatchFields.C
- src/finiteVolume/fields/fvPatchFields/basic/transform/transformFvPatchFields.C 2 additions, 2 deletions...ds/fvPatchFields/basic/transform/transformFvPatchFields.C
- src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclic/jumpCyclicFvPatchFields.C 1 addition, 1 deletion...tchFields/constraint/jumpCyclic/jumpCyclicFvPatchFields.C
- src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclicAMI/jumpCyclicAMIFvPatchFields.C 1 addition, 1 deletion...lds/constraint/jumpCyclicAMI/jumpCyclicAMIFvPatchFields.C
- src/finiteVolume/fields/fvPatchFields/constraint/processorCyclic/processorCyclicFvPatchFields.C 1 addition, 6 deletions...constraint/processorCyclic/processorCyclicFvPatchFields.C
- src/finiteVolume/fields/fvPatchFields/derived/fan/fanFvPatchFields.C 1 addition, 5 deletions...olume/fields/fvPatchFields/derived/fan/fanFvPatchFields.C
- src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFvPatchFields.C 3 additions, 11 deletions...ds/derived/fixedNormalSlip/fixedNormalSlipFvPatchFields.C
- src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.H 27 additions, 45 deletions...teVolume/fields/fvPatchFields/fvPatchField/fvPatchField.H
Please register or sign in to comment