[cig-commits] commit: Set vx on the ghost points within the iteration
Mercurial
hg at geodynamics.org
Fri Feb 10 16:00:32 PST 2012
changeset: 32:ea7929ba3ac3
user: Walter Landry <wlandry at caltech.edu>
date: Tue Feb 07 12:59:32 2012 -0800
files: compute_v_on_interface.cxx
description:
Set vx on the ghost points within the iteration
diff -r 0fd4b7aff763 -r ea7929ba3ac3 compute_v_on_interface.cxx
--- a/compute_v_on_interface.cxx Tue Feb 07 12:36:14 2012 -0800
+++ b/compute_v_on_interface.cxx Tue Feb 07 12:59:32 2012 -0800
@@ -161,6 +161,8 @@ void compute_v_on_interface(double zx[N+
vx[i+1]=(1-relax)*vx[i+1] + relax*temp;
}
+ vx[0]=vx[1];
+ vx[N+1]=vx[N];
for(int i=0;i<N+1;++i)
{
More information about the CIG-COMMITS
mailing list