diff --git a/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledGAMGInterfaceField.C b/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledGAMGInterfaceField.C index 30c00fca9b..a196d15cf4 100644 --- a/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledGAMGInterfaceField.C +++ b/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledGAMGInterfaceField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -38,6 +38,12 @@ namespace Foam regionCoupledGAMGInterfaceField, lduInterface ); + addToRunTimeSelectionTable + ( + GAMGInterfaceField, + regionCoupledGAMGInterfaceField, + lduInterfaceField + ); } @@ -57,6 +63,21 @@ Foam::regionCoupledGAMGInterfaceField::regionCoupledGAMGInterfaceField {} +Foam::regionCoupledGAMGInterfaceField::regionCoupledGAMGInterfaceField +( + const GAMGInterface& GAMGCp, + const bool doTransform, + const int rank +) +: + GAMGInterfaceField(GAMGCp, doTransform, rank), + regionCoupledGAMGInterface_ + ( + refCast(GAMGCp) + ) +{} + + // * * * * * * * * * * * * * * * * Desstructor * * * * * * * * * * * * * * * // Foam::regionCoupledGAMGInterfaceField::~regionCoupledGAMGInterfaceField() diff --git a/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledGAMGInterfaceField.H b/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledGAMGInterfaceField.H index b52b4c1321..5b26ddc2a7 100644 --- a/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledGAMGInterfaceField.H +++ b/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledGAMGInterfaceField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -85,6 +85,13 @@ public: const lduInterfaceField& fineInterfaceField ); + //- Construct from GAMG interface and fine level interface field + regionCoupledGAMGInterfaceField + ( + const GAMGInterface& GAMGCp, + const bool doTransform, + const int rank + ); //- Destructor virtual ~regionCoupledGAMGInterfaceField(); diff --git a/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledWallGAMGInterfaceField.C b/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledWallGAMGInterfaceField.C index 24921d8dd4..b310004a6c 100644 --- a/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledWallGAMGInterfaceField.C +++ b/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledWallGAMGInterfaceField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -38,6 +38,12 @@ namespace Foam regionCoupledWallGAMGInterfaceField, lduInterface ); + addToRunTimeSelectionTable + ( + GAMGInterfaceField, + regionCoupledWallGAMGInterfaceField, + lduInterfaceField + ); } @@ -57,6 +63,21 @@ Foam::regionCoupledWallGAMGInterfaceField::regionCoupledWallGAMGInterfaceField {} +Foam::regionCoupledWallGAMGInterfaceField::regionCoupledWallGAMGInterfaceField +( + const GAMGInterface& GAMGCp, + const bool doTransform, + const int rank +) +: + GAMGInterfaceField(GAMGCp, doTransform, rank), + regionCoupledGAMGInterface_ + ( + refCast(GAMGCp) + ) +{} + + // * * * * * * * * * * * * * * * * Desstructor * * * * * * * * * * * * * * * // Foam::regionCoupledWallGAMGInterfaceField::~regionCoupledWallGAMGInterfaceField diff --git a/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledWallGAMGInterfaceField.H b/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledWallGAMGInterfaceField.H index 31aaf93261..8bcdd2e114 100644 --- a/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledWallGAMGInterfaceField.H +++ b/src/meshTools/regionCoupled/GAMG/interfaceFields/regionCoupledGAMGInterfaceField/regionCoupledWallGAMGInterfaceField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -85,6 +85,14 @@ public: const lduInterfaceField& fineInterfaceField ); + //- Construct from GAMG interface and fine level interface field + regionCoupledWallGAMGInterfaceField + ( + const GAMGInterface& GAMGCp, + const bool doTransform, + const int rank + ); + //- Destructor virtual ~regionCoupledWallGAMGInterfaceField(); diff --git a/src/meshTools/regionCoupled/GAMG/interfaces/regionCoupledGAMGInterface/regionCoupledBaseGAMGInterface.C b/src/meshTools/regionCoupled/GAMG/interfaces/regionCoupledGAMGInterface/regionCoupledBaseGAMGInterface.C index cd934b8630..e02fd1a7e5 100644 --- a/src/meshTools/regionCoupled/GAMG/interfaces/regionCoupledGAMGInterface/regionCoupledBaseGAMGInterface.C +++ b/src/meshTools/regionCoupled/GAMG/interfaces/regionCoupledGAMGInterface/regionCoupledBaseGAMGInterface.C @@ -45,12 +45,7 @@ Foam::regionCoupledBaseGAMGInterface::regionCoupledBaseGAMGInterface GAMGInterface ( index, - coarseInterfaces, - fineInterface, - localRestrictAddressing, - neighbourRestrictAddressing, - fineLevelIndex, - coarseComm + coarseInterfaces ), fineRegionCoupledLduInterface_ (