Changeset 12472 for issm/trunk-jpl/src/c/objects/Loads/Numericalflux.cpp
- Timestamp:
- 06/20/12 09:19:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/objects/Loads/Numericalflux.cpp
r12365 r12472 60 60 61 61 /*First, see wether this is an internal or boundary edge (if e2=NaN)*/ 62 if (isnan(( double)iomodel->Data(MeshEdgesEnum)[4*i+3])){ //edges are [node1 node2 elem1 elem2]62 if (isnan((IssmDouble)iomodel->Data(MeshEdgesEnum)[4*i+3])){ //edges are [node1 node2 elem1 elem2] 63 63 /* Boundary edge, only one element */ 64 64 e1=(int)iomodel->Data(MeshEdgesEnum)[4*i+2]; … … 312 312 /*}}}*/ 313 313 /*FUNCTION Numericalflux::PenaltyCreateKMatrix {{{*/ 314 void Numericalflux::PenaltyCreateKMatrix(Matrix* Kff, Matrix* Kfs, double kmax){314 void Numericalflux::PenaltyCreateKMatrix(Matrix* Kff, Matrix* Kfs,IssmDouble kmax){ 315 315 316 316 /*No stiffness loads applied, do nothing: */ … … 320 320 /*}}}*/ 321 321 /*FUNCTION Numericalflux::PenaltyCreatePVector{{{*/ 322 void Numericalflux::PenaltyCreatePVector(Vector* pf, double kmax){322 void Numericalflux::PenaltyCreatePVector(Vector* pf,IssmDouble kmax){ 323 323 324 324 /*No penalty loads applied, do nothing: */ … … 359 359 /* Intermediaries*/ 360 360 int i,j,ig,index1,index2; 361 double DL1,DL2,Jdet,dt,vx,vy,UdotN;362 double xyz_list[NUMVERTICES_INTERNAL][3];363 double normal[2];364 double B[numdof];365 double Bprime[numdof];366 double Ke_g1[numdof][numdof];367 double Ke_g2[numdof][numdof];361 IssmDouble DL1,DL2,Jdet,dt,vx,vy,UdotN; 362 IssmDouble xyz_list[NUMVERTICES_INTERNAL][3]; 363 IssmDouble normal[2]; 364 IssmDouble B[numdof]; 365 IssmDouble Bprime[numdof]; 366 IssmDouble Ke_g1[numdof][numdof]; 367 IssmDouble Ke_g2[numdof][numdof]; 368 368 GaussTria *gauss; 369 369 … … 424 424 /* Intermediaries*/ 425 425 int i,j,ig,index1,index2; 426 double DL,Jdet,dt,vx,vy,mean_vx,mean_vy,UdotN;427 double xyz_list[NUMVERTICES_BOUNDARY][3];428 double normal[2];429 double L[numdof];430 double Ke_g[numdof][numdof];426 IssmDouble DL,Jdet,dt,vx,vy,mean_vx,mean_vy,UdotN; 427 IssmDouble xyz_list[NUMVERTICES_BOUNDARY][3]; 428 IssmDouble normal[2]; 429 IssmDouble L[numdof]; 430 IssmDouble Ke_g[numdof][numdof]; 431 431 GaussTria *gauss; 432 432 … … 512 512 /* Intermediaries*/ 513 513 int i,j,ig,index1,index2; 514 double DL1,DL2,Jdet,vx,vy,UdotN;515 double xyz_list[NUMVERTICES_INTERNAL][3];516 double normal[2];517 double B[numdof];518 double Bprime[numdof];519 double Ke_g1[numdof][numdof];520 double Ke_g2[numdof][numdof];514 IssmDouble DL1,DL2,Jdet,vx,vy,UdotN; 515 IssmDouble xyz_list[NUMVERTICES_INTERNAL][3]; 516 IssmDouble normal[2]; 517 IssmDouble B[numdof]; 518 IssmDouble Bprime[numdof]; 519 IssmDouble Ke_g1[numdof][numdof]; 520 IssmDouble Ke_g2[numdof][numdof]; 521 521 GaussTria *gauss; 522 522 … … 576 576 /* Intermediaries*/ 577 577 int i,j,ig,index1,index2; 578 double DL,Jdet,vx,vy,mean_vx,mean_vy,UdotN;579 double xyz_list[NUMVERTICES_BOUNDARY][3];580 double normal[2];581 double L[numdof];582 double Ke_g[numdof][numdof];578 IssmDouble DL,Jdet,vx,vy,mean_vx,mean_vy,UdotN; 579 IssmDouble xyz_list[NUMVERTICES_BOUNDARY][3]; 580 IssmDouble normal[2]; 581 IssmDouble L[numdof]; 582 IssmDouble Ke_g[numdof][numdof]; 583 583 GaussTria *gauss; 584 584 … … 703 703 /* Intermediaries*/ 704 704 int i,j,ig,index1,index2; 705 double DL,Jdet,dt,vx,vy,mean_vx,mean_vy,UdotN,thickness;706 double xyz_list[NUMVERTICES_BOUNDARY][3];707 double normal[2];708 double L[numdof];705 IssmDouble DL,Jdet,dt,vx,vy,mean_vx,mean_vy,UdotN,thickness; 706 IssmDouble xyz_list[NUMVERTICES_BOUNDARY][3]; 707 IssmDouble normal[2]; 708 IssmDouble L[numdof]; 709 709 GaussTria *gauss; 710 710 … … 797 797 /* Intermediaries*/ 798 798 int i,j,ig,index1,index2; 799 double DL,Jdet,vx,vy,mean_vx,mean_vy,UdotN,thickness;800 double xyz_list[NUMVERTICES_BOUNDARY][3];801 double normal[2];802 double L[numdof];799 IssmDouble DL,Jdet,vx,vy,mean_vx,mean_vy,UdotN,thickness; 800 IssmDouble xyz_list[NUMVERTICES_BOUNDARY][3]; 801 IssmDouble normal[2]; 802 IssmDouble L[numdof]; 803 803 GaussTria *gauss; 804 804 … … 864 864 /*}}}*/ 865 865 /*FUNCTION Numericalflux::GetNormal {{{*/ 866 void Numericalflux:: GetNormal( double* normal,double xyz_list[4][3]){866 void Numericalflux:: GetNormal(IssmDouble* normal,IssmDouble xyz_list[4][3]){ 867 867 868 868 /*Build unit outward pointing vector*/ 869 double vector[2];870 double norm;869 IssmDouble vector[2]; 870 IssmDouble norm; 871 871 872 872 vector[0]=xyz_list[1][0] - xyz_list[0][0];
Note:
See TracChangeset
for help on using the changeset viewer.