Changeset 15843
- Timestamp:
- 08/19/13 17:55:00 (12 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/m4/issm_options.m4
r15771 r15843 610 610 if test "x$HAVE_AMPI" == "xyes"; then 611 611 AMPIINCL="-I$AMPI_ROOT/include" 612 echo "adolc_root: |$ADOLC_ROOT|" 613 if test "x$ADOLC_ROOT" == "xno"; then 614 AC_MSG_ERROR([cannot run adjoinable mpi without adolc]); 615 fi 612 616 AMPILIB="-dy -L$AMPI_ROOT/lib -lampiCommon -L$ADOLC_ROOT/lib -ladolc -L$AMPI_ROOT/lib -lampiCommon -lampiBookkeeping -lampiTape" 613 617 AC_DEFINE([_HAVE_AMPI_],[1],[with adjoinable mpi in ISSM src]) … … 1865 1869 AC_MSG_ERROR([need mpi if using the metis partitioner!]); 1866 1870 fi 1871 1872 dnl check that if we run adolc, we don't compile krigging.exe 1873 if test "$HAVE_ADOLC" = "yes" && test "$HAVE_KRIGING" = "yes" ; then 1874 AC_MSG_ERROR([cannot compile kriging.exe under adolc conditions!]); 1875 fi 1876 1867 1877 1868 1878 AC_MSG_RESULT(done) -
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r15814 r15843 9746 9746 /*Viscosity*/ 9747 9747 viscosity = 1./(2.*A*(tau_par*tau_par + tau_perp*tau_perp)); 9748 _assert_(!isnan(viscosity));9748 //_assert_(!isnan(viscosity)); this is not defined for adoubles 9749 9749 _assert_(viscosity > 0.); 9750 9750 -
issm/trunk-jpl/src/c/kml/KMLFileReadUtils.cpp
r15104 r15843 556 556 if (!*pdval) 557 557 if (maxlen) 558 *pdval=xNew<Issm Double>(maxlen );559 else 560 *pdval=xNew<Issm Double>((strlen(kstr)+1)/2);558 *pdval=xNew<IssmPDouble>(maxlen ); 559 else 560 *pdval=xNew<IssmPDouble>((strlen(kstr)+1)/2); 561 561 562 562 /* loop through string to get all values */ … … 622 622 if (!*pdval) 623 623 if (maxlen) 624 *pdval=xNew<Issm Double>(maxlen*n );625 else 626 *pdval=xNew<Issm Double>((strlen(kstr)+1)/2);624 *pdval=xNew<IssmPDouble>(maxlen*n ); 625 else 626 *pdval=xNew<IssmPDouble>((strlen(kstr)+1)/2); 627 627 628 628 /* loop through string to get all values */ -
issm/trunk-jpl/src/c/kml/KML_LineString.cpp
r15104 r15843 181 181 /* extract latitude and longitude into vectors */ 182 182 183 lat=xNew<Issm Double>(ncoord);184 lon=xNew<Issm Double>(ncoord);183 lat=xNew<IssmPDouble>(ncoord); 184 lon=xNew<IssmPDouble>(ncoord); 185 185 for (i=0; i<ncoord; i++) { 186 186 lon[i]=coords[3*i+0]; … … 190 190 /* convert latitude and longitude to x and y */ 191 191 192 x =xNew<Issm Double>(ncoord);193 y =xNew<Issm Double>(ncoord);192 x =xNew<IssmPDouble>(ncoord); 193 y =xNew<IssmPDouble>(ncoord); 194 194 if (sgn) { 195 195 Ll2xyx(x,y,lat,lon,ncoord,sgn,cm,sp); … … 222 222 fprintf(fid,"\n"); 223 223 224 xDelete<Issm Double>(y);225 xDelete<Issm Double>(x);226 xDelete<Issm Double>(lon);227 xDelete<Issm Double>(lat);228 229 return; 230 } 231 /*}}}*/ 224 xDelete<IssmPDouble>(y); 225 xDelete<IssmPDouble>(x); 226 xDelete<IssmPDouble>(lon); 227 xDelete<IssmPDouble>(lat); 228 229 return; 230 } 231 /*}}}*/ -
issm/trunk-jpl/src/c/kml/KML_LinearRing.cpp
r15104 r15843 169 169 /* extract latitude and longitude into vectors */ 170 170 171 lat=xNew<Issm Double>(ncoord);172 lon=xNew<Issm Double>(ncoord);171 lat=xNew<IssmPDouble>(ncoord); 172 lon=xNew<IssmPDouble>(ncoord); 173 173 for (i=0; i<ncoord; i++) { 174 174 lon[i]=coords[3*i+0]; … … 178 178 /* convert latitude and longitude to x and y */ 179 179 180 x =xNew<Issm Double>(ncoord);181 y =xNew<Issm Double>(ncoord);180 x =xNew<IssmPDouble>(ncoord); 181 y =xNew<IssmPDouble>(ncoord); 182 182 if (sgn) { 183 183 Ll2xyx(x,y,lat,lon,ncoord,sgn,cm,sp); -
issm/trunk-jpl/src/c/modules/ModelProcessorx/Stressbalance/CreateLoadsStressbalance.cpp
r15771 r15843 1 1 /*! \file CreateLoadsStressbalance.c: 2 2 */ 3 3 #include <string.h> 4 4 #include "../../../toolkits/toolkits.h" 5 5 #include "../../../classes/classes.h" … … 29 29 IssmDouble *vertices_type = NULL; 30 30 IssmDouble *penalties = NULL; 31 int assert_int; 31 32 32 33 /*Fetch parameters: */ … … 54 55 55 56 /*In debugging mode, check that the second node is in the same cpu*/ 56 _assert_(iomodel->my_vertices[(int)penalties[2*i+1]-1]);57 assert_int=iomodel->my_vertices[reCast<int,IssmDouble>(penalties[2*i+1]-1)]; _assert_(assert_int); 57 58 58 59 /*Get node ids*/ -
issm/trunk-jpl/src/c/shared/Elements/Arrhenius.cpp
r15741 r15843 33 33 34 34 /*convert temperature to absolute temperature*/ 35 _assert_(depth );35 _assert_(depth>0); 36 36 Tstar=temperature-beta*depth; 37 _assert_(Tstar );37 _assert_(Tstar>0); 38 38 39 39 /*Get A*/ -
issm/trunk-jpl/src/c/shared/Elements/LliboutryDuval.cpp
r15808 r15843 47 47 IssmDouble A,B,Tstar,Tpmp,H_sp,waterfraction; 48 48 49 _assert_(pressure );50 _assert_(enthalpy );49 _assert_(pressure>0); 50 _assert_(enthalpy>0); 51 51 Tpmp=273.15-beta*pressure; 52 52 H_sp=heatcapacity*(Tpmp - Tref); … … 70 70 71 71 /*Convert to B*/ 72 _assert_(n );72 _assert_(n>0); 73 73 B=pow(A,-1./n); 74 74 … … 89 89 IssmDouble latentheat=3.34*pow(10,5.); // from Aschwanden 2012 90 90 IssmDouble Tstar, enthalpy, pressure, B; 91 _assert_(temperature );92 _assert_(waterfraction );93 _assert_(depth );91 _assert_(temperature>0); 92 _assert_(waterfraction>0); 93 _assert_(depth>0); 94 94 95 95 /*get pressure*/
Note:
See TracChangeset
for help on using the changeset viewer.