[cig-commits] r12036 - in long/3D/Gale/trunk: . src/StgFEM/SLE/SystemSetup/src

walter at geodynamics.org walter at geodynamics.org
Tue May 27 16:12:46 PDT 2008


Author: walter
Date: 2008-05-27 16:12:46 -0700 (Tue, 27 May 2008)
New Revision: 12036

Modified:
   long/3D/Gale/trunk/
   long/3D/Gale/trunk/src/StgFEM/SLE/SystemSetup/src/SystemLinearEquations.c
Log:
 r2199 at earth:  boo | 2008-05-27 16:13:03 -0700
 Remember to sync the pressure



Property changes on: long/3D/Gale/trunk
___________________________________________________________________
Name: svk:merge
   - 3a629746-de10-0410-b17b-fd6ecaaa963e:/cig:2197
   + 3a629746-de10-0410-b17b-fd6ecaaa963e:/cig:2199

Modified: long/3D/Gale/trunk/src/StgFEM/SLE/SystemSetup/src/SystemLinearEquations.c
===================================================================
--- long/3D/Gale/trunk/src/StgFEM/SLE/SystemSetup/src/SystemLinearEquations.c	2008-05-27 17:05:01 UTC (rev 12035)
+++ long/3D/Gale/trunk/src/StgFEM/SLE/SystemSetup/src/SystemLinearEquations.c	2008-05-27 23:12:46 UTC (rev 12036)
@@ -649,11 +649,13 @@
   FeVariable *nodal_pressure, *pressure;
   nodal_pressure = (FeVariable*)FieldVariable_Register_GetByName( ((FiniteElementContext *)_context)->fieldVariable_Register, "NodalPressureField" );
   pressure = (FeVariable*)FieldVariable_Register_GetByName( ((FiniteElementContext *)_context)->fieldVariable_Register, "PressureField" );
+
   if(nodal_pressure!=NULL)
     {
       Node_LocalIndex n_i;
       unsigned	N, nDims;
             
+      FeVariable_SyncShadowValues(pressure);
       nDims = Mesh_GetDimSize( nodal_pressure->feMesh );
 
         /* Average the pressure over neighboring cells to get the
@@ -675,6 +677,7 @@
         p/=nInc;
         FeVariable_SetValueAtNode(nodal_pressure,n_i,&p);
       }
+      FeVariable_SyncShadowValues(nodal_pressure); 
     }
 }
 



More information about the cig-commits mailing list