Changeset 3159
- Timestamp:
- 03/02/10 14:18:24 (15 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/Makefile.am
r3126 r3159 129 129 ./shared/Elements/ResolvePointers.cpp\ 130 130 ./shared/Elements/Paterson.cpp\ 131 ./shared/Elements/Get ElementNodeData.cpp\131 ./shared/Elements/GetVerticesCoordinates.cpp\ 132 132 ./shared/String/isdistributed.cpp\ 133 133 ./shared/String/sharedstring.h\ … … 456 456 ./shared/Elements/ResolvePointers.cpp\ 457 457 ./shared/Elements/Paterson.cpp\ 458 ./shared/Elements/Get ElementNodeData.cpp\458 ./shared/Elements/GetVerticesCoordinates.cpp\ 459 459 ./shared/String/isdistributed.cpp\ 460 460 ./shared/String/sharedstring.h\ -
issm/trunk/src/c/include/typedefs.h
r1 r3159 7 7 8 8 #define UNDEF -9999 9 #define ONETHIRD 0.333333333333333333333333333333333333333333333333333333333333 10 #define SQRT2 1.414213562373095048801688724209698078569671875376948073176679738 11 #define SQRT3 1.732050807568877293527446341505872366942805253810380628055806979 12 #define PI 3.141592653589793238462643383279502884197169399375105820974944592308 9 13 10 14 #endif //ifndef _ISSMTYPEDEFS_H_ 11 -
issm/trunk/src/c/objects/Beam.cpp
r3041 r3159 179 179 180 180 /*Get node data: */ 181 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);181 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 182 182 183 183 /*Get dof list on which we will plug the pressure values: */ … … 369 369 370 370 //Get all element grid data: 371 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);371 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 372 372 for(i=0;i<numgrids;i++)z_list[i]=xyz_list[i][2]; 373 373 -
issm/trunk/src/c/objects/Icefront.cpp
r3107 r3159 315 315 /* Get dof list and node coordinates: */ 316 316 GetDofList(&doflist[0],&numberofdofspernode); 317 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);317 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 318 318 319 319 /*Now build thickness_list_element and bed_list_element: */ … … 423 423 /* Get dof list and node coordinates: */ 424 424 GetDofList(&doflist[0],&numberofdofspernode); 425 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);425 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 426 426 427 427 //Identify which grids are comprised in the quad: … … 582 582 /* Get dof list and node coordinates: */ 583 583 GetDofList(&doflist[0],&numberofdofspernode); 584 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);584 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 585 585 586 586 //Identify which grids are comprised in the quad: -
issm/trunk/src/c/objects/Penta.cpp
r3131 r3159 229 229 230 230 /*Get node data: */ 231 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);231 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 232 232 233 233 /*pressure is lithostatic: */ … … 510 510 511 511 /* Get node coordinates and dof list: */ 512 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);512 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 513 513 GetDofList(&doflist[0],&numberofdofspernode); 514 514 … … 743 743 744 744 /* Get node coordinates and dof list: */ 745 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);745 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 746 746 GetDofList(&doflist[0],&numberofdofspernode); 747 747 … … 995 995 996 996 /* Get node coordinates and dof list: */ 997 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);997 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 998 998 GetDofList(&doflist[0],&numberofdofspernode); 999 999 … … 1228 1228 1229 1229 /* Get node coordinates and dof list: */ 1230 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);1230 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 1231 1231 GetDofList(&doflist[0],&numberofdofspernode); 1232 1232 … … 1576 1576 1577 1577 /* Get node coordinates and dof list: */ 1578 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);1578 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 1579 1579 GetDofList(&doflist[0],&numberofdofspernode); 1580 1580 … … 1743 1743 1744 1744 /* Get node coordinates and dof list: */ 1745 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);1745 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 1746 1746 GetDofList(&doflist[0],&numberofdofspernode); 1747 1747 … … 1962 1962 /*Now, handle the standard penta element: */ 1963 1963 /* Get node coordinates and dof list: */ 1964 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);1964 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 1965 1965 GetDofList(&doflist[0],&numberofdofspernode); 1966 1966 … … 2172 2172 2173 2173 /* Get node coordinates and dof list: */ 2174 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);2174 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 2175 2175 GetDofList(&doflist[0],&numberofdofspernode); 2176 2176 … … 3049 3049 double z1,z2,z3,z4,z5,z6; 3050 3050 3051 double sqrt3= sqrt(3.0);3051 double sqrt3=SQRT3; 3052 3052 3053 3053 /*Figure out xi,eta and zi (parametric coordinates), for this gaussian point: */ … … 3461 3461 const int numgrids=6; 3462 3462 double A1,A2,A3,z; 3463 double sqrt3= sqrt(3.0);3464 3465 A1=gauss_coord[0]; //first area coordinate value. In term of xi and eta: A1=(1-xi)/2-eta/(2* sqrt(3));3466 A2=gauss_coord[1]; //second area coordinate value In term of xi and eta: A2=(1+xi)/2-eta/(2* sqrt(3));3467 A3=gauss_coord[2]; //third area coordinate value In term of xi and eta: A3=y/ sqrt(3);3463 double sqrt3=SQRT3; 3464 3465 A1=gauss_coord[0]; //first area coordinate value. In term of xi and eta: A1=(1-xi)/2-eta/(2*SQRT3); 3466 A2=gauss_coord[1]; //second area coordinate value In term of xi and eta: A2=(1+xi)/2-eta/(2*SQRT3); 3467 A3=gauss_coord[2]; //third area coordinate value In term of xi and eta: A3=y/SQRT3; 3468 3468 z=gauss_coord[3]; //fourth vertical coordinate value. Corresponding nodal function: (1-z)/2 and (1+z)/2 3469 3469 … … 3508 3508 * natural coordinate system) at the gaussian point. */ 3509 3509 3510 double sqrt3= sqrt(3.0);3510 double sqrt3=SQRT3; 3511 3511 int numgrids=7; //six plus bubble grids 3512 3512 -
issm/trunk/src/c/objects/Tria.cpp
r3102 r3159 382 382 383 383 /* Get node coordinates and dof list: */ 384 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);384 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 385 385 GetDofList(&doflist[0],&numberofdofspernode); 386 386 … … 586 586 587 587 /* Get node coordinates and dof list: */ 588 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);588 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 589 589 GetDofList(&doflist[0],&numberofdofspernode); 590 590 … … 795 795 796 796 /* Get node coordinates and dof list: */ 797 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);797 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 798 798 GetDofList(&doflist[0],&numberofdofspernode); 799 799 … … 1005 1005 1006 1006 /* Get node coordinates and dof list: */ 1007 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);1007 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 1008 1008 GetDofList(&doflist[0],&numberofdofspernode); 1009 1009 … … 1167 1167 1168 1168 /* Get node coordinates and dof list: */ 1169 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);1169 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 1170 1170 GetDofList(&doflist[0],&numberofdofspernode); 1171 1171 … … 1287 1287 1288 1288 /* Get node coordinates and dof list: */ 1289 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);1289 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 1290 1290 GetDofList(&doflist[0],&numberofdofspernode); 1291 1291 … … 1335 1335 #define __FUNCT__ "Tria::CreateKMatrixPrognostic" 1336 1336 void Tria::CreateKMatrixPrognostic(Mat Kgg,void* vinputs,int analysis_type,int sub_analysis_type){ 1337 1338 1337 1339 1338 /* local declarations */ … … 1364 1363 double DLprime[2][2]={0.0}; 1365 1364 double DL_scalar; 1366 double Ke_gg[numdof][numdof]={0.0};//local element stiffness matrix 1367 double Ke_gg_gaussian[numdof][numdof]={0.0}; //stiffness matrix evaluated at the gaussian point. 1368 double Ke_gg_thickness1[numdof][numdof]={0.0}; //stiffness matrix evaluated at the gaussian point. 1369 double Ke_gg_thickness2[numdof][numdof]={0.0}; //stiffness matrix evaluated at the gaussian point. 1370 1365 double Ke_gg[numdof][numdof]={0.0}; 1366 double Ke_gg_gaussian[numdof][numdof]={0.0}; 1367 double Ke_gg_thickness1[numdof][numdof]={0.0}; 1368 double Ke_gg_thickness2[numdof][numdof]={0.0}; 1371 1369 double Jdettria; 1372 1370 … … 1384 1382 double dt; 1385 1383 int dofs[2]={0,1}; 1386 int found =0;1384 int found; 1387 1385 1388 1386 ParameterInputs* inputs=NULL; … … 1404 1402 1405 1403 /* Get node coordinates and dof list: */ 1406 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);1404 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 1407 1405 GetDofList(&doflist[0],&numberofdofspernode); 1408 1406 1409 1407 //Create Artificial diffusivity once for all if requested 1410 if(numpar->artdiff ){1408 if(numpar->artdiff==1){ 1411 1409 //Get the Jacobian determinant 1412 1410 gauss_l1l2l3[0]=1.0/3.0; gauss_l1l2l3[1]=1.0/3.0; gauss_l1l2l3[2]=1.0/3.0; … … 1426 1424 /* Start looping on the number of gaussian points: */ 1427 1425 for (ig=0; ig<num_gauss; ig++){ 1426 1428 1427 /*Pick up the gaussian point: */ 1429 1428 gauss_weight=*(gauss_weights+ig); … … 1487 1486 for( i=0; i<numdof; i++) for(j=0;j<numdof;j++) Ke_gg[i][j]+=Ke_gg_thickness2[i][j]; 1488 1487 1489 if(numpar->artdiff ){1488 if(numpar->artdiff==1){ 1490 1489 1491 1490 /* Compute artificial diffusivity */ … … 1588 1587 1589 1588 /* Get node coordinates and dof list: */ 1590 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);1589 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 1591 1590 GetDofList(&doflist[0],&numberofdofspernode); 1592 1591 … … 1682 1681 1683 1682 /* Get node coordinates and dof list: */ 1684 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);1683 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 1685 1684 GetDofList(&doflist[0],&numberofdofspernode); 1686 1685 … … 1830 1829 1831 1830 /* Get node coordinates and dof list: */ 1832 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);1831 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 1833 1832 GetDofList(&doflist[0],&numberofdofspernode); 1834 1833 … … 1921 1920 1922 1921 /* Get node coordinates and dof list: */ 1923 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);1922 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 1924 1923 GetDofList(&doflist[0],&numberofdofspernode); 1925 1924 … … 2019 2018 2020 2019 /* Get node coordinates and dof list: */ 2021 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);2020 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 2022 2021 GetDofList(&doflist[0],&numberofdofspernode); 2023 2022 … … 2129 2128 2130 2129 /* Get node coordinates and dof list: */ 2131 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);2130 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 2132 2131 GetDofList(&doflist[0],&numberofdofspernode); 2133 2132 … … 2307 2306 2308 2307 /* Get node coordinates and dof list: */ 2309 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);2308 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 2310 2309 GetDofList(&doflist[0],&numberofdofspernode); 2311 2310 … … 2386 2385 2387 2386 /* Get node coordinates and dof list: */ 2388 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);2387 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 2389 2388 GetDofList(&doflist[0],&numberofdofspernode); 2390 2389 … … 2494 2493 2495 2494 /* Get node coordinates and dof list: */ 2496 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);2495 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 2497 2496 GetDofList(&doflist[0],&numberofdofspernode); 2498 2497 … … 2609 2608 2610 2609 /* Get node coordinates and dof list: */ 2611 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);2610 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 2612 2611 GetDofList(&doflist[0],&numberofdofspernode); 2613 2612 … … 2803 2802 2804 2803 /* Get node coordinates and dof list: */ 2805 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);2804 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 2806 2805 GetDofList(&doflist[0],&numberofdofspernode); 2807 2806 … … 3005 3004 3006 3005 /*Get xyz list: */ 3007 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);3006 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 3008 3007 x1=xyz_list[0][0]; y1=xyz_list[0][1]; 3009 3008 x2=xyz_list[1][0]; y2=xyz_list[1][1]; … … 3027 3026 3028 3027 /*Get xyz list: */ 3029 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);3028 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 3030 3029 x1=xyz_list[0][0]; y1=xyz_list[0][1]; 3031 3030 x2=xyz_list[1][0]; y2=xyz_list[1][1]; … … 3254 3253 const int numgrids=3; 3255 3254 double x1,y1,x2,y2,x3,y3; 3256 double sqrt3=sqrt(3.0);3257 3255 3258 3256 x1=*(xyz_list+numgrids*0+0); … … 3265 3263 3266 3264 *(J+NDOF2*0+0)=1.0/2.0*(x2-x1); 3267 *(J+NDOF2*1+0)= sqrt3/6.0*(2*x3-x1-x2);3265 *(J+NDOF2*1+0)=SQRT3/6.0*(2*x3-x1-x2); 3268 3266 *(J+NDOF2*0+1)=1.0/2.0*(y2-y1); 3269 *(J+NDOF2*1+1)= sqrt3/6.0*(2*y3-y1-y2);3267 *(J+NDOF2*1+1)=SQRT3/6.0*(2*y3-y1-y2); 3270 3268 } 3271 3269 /*}}}*/ … … 3288 3286 3289 3287 3290 *Jdet= sqrt(3.0)/6.0*((x2-x1)*(y3-y1)-(y2-y1)*(x3-x1));3288 *Jdet=SQRT3/6.0*((x2-x1)*(y3-y1)-(y2-y1)*(x3-x1)); 3291 3289 3292 3290 … … 3318 3316 3319 3317 3320 *Jdet= sqrt(3.0)/6.0*pow(pow(((y2-y1)*(z3-z1)-(z2-z1)*(y3-y1)),2.0)+pow(((z2-z1)*(x3-x1)-(x2-x1)*(z3-z1)),2.0)+pow(((x2-x1)*(y3-y1)-(y2-y1)*(x3-x1)),2.0),0.5);3318 *Jdet=SQRT3/6.0*pow(pow(((y2-y1)*(z3-z1)-(z2-z1)*(y3-y1)),2.0)+pow(((z2-z1)*(x3-x1)-(x2-x1)*(z3-z1)),2.0)+pow(((x2-x1)*(y3-y1)-(y2-y1)*(x3-x1)),2.0),0.5); 3321 3319 3322 3320 … … 3469 3467 const int numgrids=3; 3470 3468 3471 double sqrt3=sqrt(3.0);3472 3473 3469 /*First nodal function: */ 3474 3470 *(dl1dl3+numgrids*0+0)=-1.0/2.0; 3475 *(dl1dl3+numgrids*1+0)=-1.0/(2.0* sqrt3);3471 *(dl1dl3+numgrids*1+0)=-1.0/(2.0*SQRT3); 3476 3472 3477 3473 /*Second nodal function: */ 3478 3474 *(dl1dl3+numgrids*0+1)=1.0/2.0; 3479 *(dl1dl3+numgrids*1+1)=-1.0/(2.0* sqrt3);3475 *(dl1dl3+numgrids*1+1)=-1.0/(2.0*SQRT3); 3480 3476 3481 3477 /*Third nodal function: */ 3482 3478 *(dl1dl3+numgrids*0+2)=0; 3483 *(dl1dl3+numgrids*1+2)=1.0/ sqrt3;3479 *(dl1dl3+numgrids*1+2)=1.0/SQRT3; 3484 3480 3485 3481 } … … 3666 3662 3667 3663 /* Get node coordinates and dof list: */ 3668 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);3664 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 3669 3665 GetDofList1(&doflist1[0]); 3670 3666 … … 3843 3839 3844 3840 /* Get node coordinates and dof list: */ 3845 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);3841 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 3846 3842 GetDofList1(&doflist1[0]); 3847 3843 … … 4065 4061 4066 4062 /* Get node coordinates and dof list: */ 4067 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);4063 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 4068 4064 GetDofList1(&doflist1[0]); 4069 4065 … … 4263 4259 4264 4260 /*Get xyz list: */ 4265 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);4261 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 4266 4262 4267 4263 /*recover velocity at three element nodes: */ … … 4383 4379 4384 4380 /* Get node coordinates and dof list: */ 4385 Get ElementNodeData(&xyz_list[0][0], nodes, numgrids);4381 GetVerticesCoordinates(&xyz_list[0][0], nodes, numgrids); 4386 4382 4387 4383 /* Recover input data: */ -
issm/trunk/src/c/shared/Elements/ResolvePointers.cpp
r358 r3159 25 25 Object* object=NULL; 26 26 int i; 27 28 27 29 28 for(i=0;i<num_objects;i++){ … … 57 56 } 58 57 } 59 60 58 } 61 -
issm/trunk/src/c/shared/Elements/elements.h
r1 r3159 11 11 void ResolvePointers(Object** objects,int* object_ids,int* object_offsets,int num_objects,DataSet* dataset); 12 12 double Paterson(double temperature); 13 int Get ElementNodeData(double* xyz, Node** nodes, int numgrids);13 int GetVerticesCoordinates(double* xyz, Node** nodes, int numgrids); 14 14 15 15 #endif //ifndef _SHARED_ELEMENTS_H_ -
issm/trunk/src/c/shared/Numerics/GaussPoints.cpp
r1439 r3159 6 6 #include "../Alloc/alloc.h" 7 7 #include "../../include/macros.h" 8 #include "../../include/typedefs.h" 8 9 #include "../Exceptions/exceptions.h" 9 10 #include <math.h> 10 11 #include <float.h> 11 12 12 13 13 /*=======1=========2=========3=========4=========5=========6=========7=========8 … … 1605 1605 for (i=0; i<nigaus; i++) { 1606 1606 xi = 1./2.*(1.-egaus[j])*xgaus[i]; 1607 eta = sqrt(3.)/2.*(1.+egaus[j]);1608 (*pwgt)[ipt]=xwgt[i]*ewgt[j]*( sqrt(3.)/4.*(1.-egaus[j]));1609 1610 (*pl1 )[ipt]=(1.-xi-eta/ sqrt(3.))/2.;1611 (*pl2 )[ipt]=(1.+xi-eta/ sqrt(3.))/2.;1612 (*pl3 )[ipt]= eta/ sqrt(3.);1607 eta =SQRT3/2.*(1.+egaus[j]); 1608 (*pwgt)[ipt]=xwgt[i]*ewgt[j]*(SQRT3/4.*(1.-egaus[j])); 1609 1610 (*pl1 )[ipt]=(1.-xi-eta/SQRT3)/2.; 1611 (*pl2 )[ipt]=(1.+xi-eta/SQRT3)/2.; 1612 (*pl3 )[ipt]= eta/SQRT3; 1613 1613 1614 1614 ipt++; … … 1955 1955 (*pl3 )[i]=l3p [iord-1][i]; 1956 1956 (*pl4 )[i]=l4p [iord-1][i]; 1957 (*pwgt)[i]=wgtp[iord-1][i]*2./3.* sqrt(2.);1957 (*pwgt)[i]=wgtp[iord-1][i]*2./3.*SQRT2; 1958 1958 } 1959 1959 } … … 1989 1989 for (i=0; i<nigaus; i++) { 1990 1990 xi =1./4.*(1.-egaus[j])*(1.-zgaus[k])*xgaus[i]; 1991 eta =1./4./ sqrt(3.)1991 eta =1./4./SQRT3 1992 1992 *(5.+3.*egaus[j]-zgaus[k]-3.*egaus[j]*zgaus[k]); 1993 1993 zeta =sqrt(2./3.)*(1.+zgaus[k]); 1994 1994 (*pwgt)[ipt]=xwgt[i]*ewgt[j]*zwgt[k] 1995 *( sqrt(2.)/16.1995 *(SQRT2/16. 1996 1996 *(1.-egaus[j])*pow(1.-zgaus[k],2.)); 1997 1997 1998 (*pl1 )[ipt]=(1.-xi-eta/ sqrt(3.)-zeta/sqrt(6.))/2.;1999 (*pl2 )[ipt]=(1.+xi-eta/ sqrt(3.)-zeta/sqrt(6.))/2.;2000 (*pl3 )[ipt]=( eta -zeta/sqrt(8.))/ sqrt(3.);2001 (*pl4 )[ipt]=( zeta/sqrt(8.))* sqrt(3.);1998 (*pl1 )[ipt]=(1.-xi-eta/SQRT3-zeta/sqrt(6.))/2.; 1999 (*pl2 )[ipt]=(1.+xi-eta/SQRT3-zeta/sqrt(6.))/2.; 2000 (*pl3 )[ipt]=( eta -zeta/sqrt(8.))/SQRT3; 2001 (*pl4 )[ipt]=( zeta/sqrt(8.))*SQRT3; 2002 2002 2003 2003 ipt++;
Note:
See TracChangeset
for help on using the changeset viewer.