Changeset 15396 for issm/trunk/src/c/shared/Numerics/GaussPoints.cpp
- Timestamp:
- 07/02/13 09:24:16 (12 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:ignore
-
old new 1 par 2 ad 3 proj-* 1 4 projects 2 5 autom4te.cache
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 14311,14313,14316-14506,14508-15387,15390-15392
- Property svn:ignore
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/c/shared/Numerics/GaussPoints.cpp
r13395 r15396 1 1 /* Gauss point structures and prototypes */ 2 3 #include "../../include/include.h"4 #include "./GaussPoints.h"5 #include "../Alloc/alloc.h"6 #include "../Exceptions/exceptions.h"7 2 #include <math.h> 8 3 #include <float.h> 4 5 #include "./GaussPoints.h" 6 #include "../MemOps/MemOps.h" 7 #include "../Exceptions/exceptions.h" 8 #include "../Numerics/constants.h" 9 9 10 10 /*General Gauss points*/ … … 50 50 sizeof(wgt4 )/sizeof(IssmPDouble)}; 51 51 52 // _p printLine_("Gauss-Legendre recurrence coefficients ngaus=" << ngaus);52 // _printf0_("Gauss-Legendre recurrence coefficients ngaus=" << ngaus << "\n"); 53 53 *pxgaus =xNew<IssmPDouble>(ngaus); 54 54 *pxwgt =xNew<IssmPDouble>(ngaus); … … 88 88 }/*}}}*/ 89 89 /*FUNCTION GaussLegendreTria{{{*/ 90 void GaussLegendreTria( int* pngaus, Issm PDouble** pl1, IssmPDouble** pl2, IssmPDouble** pl3, IssmPDouble** pwgt, int iord ) {90 void GaussLegendreTria( int* pngaus, IssmDouble** pl1, IssmDouble** pl2, IssmDouble** pl3, IssmDouble** pwgt, int iord ) { 91 91 /*Gauss quadrature points for the triangle. 92 92 … … 413 413 0.116251915907597, 0.025734050548330, 0.025734050548330}; 414 414 /*}}}*/ 415 /* 415 /*p=13, npoint=37 {{{*/ 416 416 static IssmPDouble wgt13[]={ 417 417 0.090968907790622, 0.019537784619314, 0.019537784619314, … … 771 771 0.014663182224828}; 772 772 /*}}}*/ 773 /* 773 /*p=18, npoint=70 {{{*/ 774 774 775 775 static IssmPDouble wgt18[]={ … … 1138 1138 sizeof(wgt20)/sizeof(IssmPDouble)}; 1139 1139 1140 // _p printLine_("GaussLegendreTria: iord=" << iord);1140 // _printf0_("GaussLegendreTria: iord=" << iord << "\n"); 1141 1141 1142 1142 /* check to see if Gauss points need to be calculated */ … … 1149 1149 *pngaus=np[iord-1]; 1150 1150 1151 *pl1 =xNew<Issm PDouble>(*pngaus);1152 *pl2 =xNew<Issm PDouble>(*pngaus);1153 *pl3 =xNew<Issm PDouble>(*pngaus);1154 *pwgt =xNew<Issm PDouble>(*pngaus);1151 *pl1 =xNew<IssmDouble>(*pngaus); 1152 *pl2 =xNew<IssmDouble>(*pngaus); 1153 *pl3 =xNew<IssmDouble>(*pngaus); 1154 *pwgt =xNew<IssmDouble>(*pngaus); 1155 1155 1156 1156 for (i=0; i<*pngaus; i++) { … … 1167 1167 *pngaus=nigaus*nigaus; 1168 1168 1169 *pl1 =xNew<Issm PDouble>(*pngaus);1170 *pl2 =xNew<Issm PDouble>(*pngaus);1171 *pl3 =xNew<Issm PDouble>(*pngaus);1172 *pwgt =xNew<Issm PDouble>(*pngaus);1169 *pl1 =xNew<IssmDouble>(*pngaus); 1170 *pl2 =xNew<IssmDouble>(*pngaus); 1171 *pl3 =xNew<IssmDouble>(*pngaus); 1172 *pwgt =xNew<IssmDouble>(*pngaus); 1173 1173 1174 1174 /* get the gauss points in each direction */ … … 1198 1198 } 1199 1199 1200 // _p printLine_("GaussLegendreTria - ngaus=" << *pngaus);1200 // _printf0_("GaussLegendreTria - ngaus=" << *pngaus << "\n"); 1201 1201 // for (i=0; i<*pngaus; i++) 1202 // _printf_(true,"i=%d: l1gaus=%f,l2gaus=%f,l3gaus=%f,wgt=%f\n", 1203 // i,(*pl1 )[i],(*pl2 )[i],(*pl3 )[i],(*pwgt)[i]); 1202 // _printf0_("i=" << i << ": l1gaus=" << (*pl1 )[i] << ",l2gaus=" << (*pl2 )[i] << ",l3gaus=" << (*pl3 )[i]<< ",wgt=" << (*pwgt)[i]<< "\n\n"); 1204 1203 1205 1204 return; … … 1397 1396 sizeof(wgt6 )/sizeof(IssmPDouble)}; 1398 1397 1399 // _p printLine_("GaussLegendreTetra: iord=" << iord);1398 // _printf0_("GaussLegendreTetra: iord=" << iord << "\n"); 1400 1399 1401 1400 /* check to see if Gauss points need to be calculated */ … … 1520 1519 sizeof(wgt5 )/sizeof(IssmPDouble)}; 1521 1520 1522 // _p printLine_("Gauss-Lobatto recurrence coefficients ngaus=" << ngaus);1521 // _printf0_("Gauss-Lobatto recurrence coefficients ngaus=" << ngaus << "\n"); 1523 1522 *pxgaus =xNew<IssmPDouble>(ngaus); 1524 1523 *pxwgt =xNew<IssmPDouble>(ngaus);
Note:
See TracChangeset
for help on using the changeset viewer.