aboutsummaryrefslogtreecommitdiff
path: root/src/IsoSurfacerInit.c
diff options
context:
space:
mode:
authorjshalf <jshalf@bfcf8e34-485d-4d46-a995-1fd6fa6fb178>2000-12-15 09:04:26 +0000
committerjshalf <jshalf@bfcf8e34-485d-4d46-a995-1fd6fa6fb178>2000-12-15 09:04:26 +0000
commit630488ceb5e2419de52ed7d1c0c4ea665cdd60ce (patch)
tree1aa5bbaced6b2abcc2481af298d48a8a31158273 /src/IsoSurfacerInit.c
parent0ccc9a60fa04d9a2f03ad7a65e3777d730fa07ec (diff)
Added parallel collection of vertex normals.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IsoSurfacer/trunk@29 bfcf8e34-485d-4d46-a995-1fd6fa6fb178
Diffstat (limited to 'src/IsoSurfacerInit.c')
-rw-r--r--src/IsoSurfacerInit.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/IsoSurfacerInit.c b/src/IsoSurfacerInit.c
index 16c872d..746d6c1 100644
--- a/src/IsoSurfacerInit.c
+++ b/src/IsoSurfacerInit.c
@@ -30,6 +30,8 @@ void *IsoSurfacer_SetupGH (tFleshConfig *config,
myGH->perprocessor.nverts = myGH->totals.nverts = 0;
myGH->perprocessor.polys = myGH->totals.polys = NULL;
myGH->perprocessor.npolys = myGH->totals.npolys = 0;
+ myGH->perprocessor.norms = myGH->totals.norms = NULL;
+ myGH->perprocessor.nnorms = myGH->totals.nnorms = 0;
return myGH;
}
@@ -51,18 +53,22 @@ int IsoSurfacer_InitGH (cGH *GH){
myGH = (isosurfacerGH *) GH->extensions [CCTK_GHExtensionHandle ("IsoSurfacer")];
- printf("IsoInit\n");
+ /*printf("IsoInit\n"); */
/* initialize values */
myGH->funcName=0;
myGH->formats=0;
myGH->outfreq=output_frequency;
myGH->firstIteration=output_start;
myGH->ComputeNormals=compute_normals;
+ /* printf("************* compute Normals = %u *****************\n",
+ myGH->ComputeNormals); */
myGH->isovalue=isovalue;
myGH->perprocessor.verts = myGH->totals.verts = NULL;
myGH->perprocessor.nverts = myGH->totals.nverts = 0;
myGH->perprocessor.polys = myGH->totals.polys = NULL;
myGH->perprocessor.npolys = myGH->totals.npolys = 0;
+ myGH->perprocessor.norms = myGH->totals.norms = NULL;
+ myGH->perprocessor.nnorms = myGH->totals.nnorms = 0;
myGH->minval=0.0;
myGH->maxval=1.0;