[cig-commits] r11910 - mc/3D/CitcomCU/trunk/src
tan2 at geodynamics.org
tan2 at geodynamics.org
Fri May 2 16:57:15 PDT 2008
Author: tan2
Date: 2008-05-02 16:57:15 -0700 (Fri, 02 May 2008)
New Revision: 11910
Modified:
mc/3D/CitcomCU/trunk/src/Drive_solvers.c
Log:
Changed the type of a variable from float to double. This will avoid type-conversion later in the loop.
Modified: mc/3D/CitcomCU/trunk/src/Drive_solvers.c
===================================================================
--- mc/3D/CitcomCU/trunk/src/Drive_solvers.c 2008-05-02 23:56:55 UTC (rev 11909)
+++ mc/3D/CitcomCU/trunk/src/Drive_solvers.c 2008-05-02 23:57:15 UTC (rev 11910)
@@ -50,7 +50,7 @@
//int count, i, j, k;
int count, i;
- static float *oldU;
+ static double *oldU;
static int visits = 0;
//const int nno = E->lmesh.nno;
@@ -60,7 +60,7 @@
if(visits == 0)
{
- oldU = (float *)malloc((neq + 2) * sizeof(float));
+ oldU = (double *)malloc((neq + 2) * sizeof(double));
for(i = 1; i <= neq; i++)
oldU[i] = 0.0;
visits++;
More information about the cig-commits
mailing list