Changeset 25446
- Timestamp:
- 08/21/20 20:09:49 (5 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Cfsurfacelogvel.cpp
r25411 r25446 168 168 /* Start looping on the number of gaussian points: */ 169 169 Gauss* gauss=topelement->NewGauss(2); 170 for(int ig=gauss->begin();ig<gauss->end();ig++){ 171 172 gauss->GaussPoint(ig); 170 while(gauss->next()){ 173 171 174 172 /* Get Jacobian determinant: */ -
issm/trunk-jpl/src/c/classes/Cfsurfacesquare.cpp
r25379 r25446 172 172 /* Start looping on the number of gaussian points: */ 173 173 Gauss* gauss=topelement->NewGauss(2); 174 for(int ig=gauss->begin();ig<gauss->end();ig++){ 175 176 gauss->GaussPoint(ig); 174 while(gauss->next()){ 177 175 178 176 /* Get Jacobian determinant: */ -
issm/trunk-jpl/src/c/classes/Elements/Element.cpp
r25420 r25446 736 736 737 737 Gauss* gauss=this->NewGauss(5); 738 for(int ig=gauss->begin();ig<gauss->end();ig++){ 739 gauss->GaussPoint(ig); 738 while(gauss->next()){ 740 739 this->JacobianDeterminant(&Jdet,xyz_list,gauss); 741 740 -
issm/trunk-jpl/src/c/classes/FemModel.cpp
r25389 r25446 990 990 /* Start looping on the number of gaussian points: */ 991 991 Gauss* gauss=element->NewGauss(2); 992 for(int ig=gauss->begin();ig<gauss->end();ig++){ 993 994 gauss->GaussPoint(ig); 992 while(gauss->next()){ 995 993 996 994 /* Get Jacobian determinant: */ … … 2080 2078 /* Start looping on the number of gaussian points: */ 2081 2079 Gauss* gauss=element->NewGauss(2); 2082 for(int ig=gauss->begin();ig<gauss->end();ig++){ 2083 2084 gauss->GaussPoint(ig); 2080 while(gauss->next()){ 2085 2081 2086 2082 /* Get Jacobian determinant: */ … … 2138 2134 /* Start looping on the number of gaussian points: */ 2139 2135 Gauss* gauss=element->NewGauss(2); 2140 for(int ig=gauss->begin();ig<gauss->end();ig++){ 2141 2142 gauss->GaussPoint(ig); 2136 while(gauss->next()){ 2143 2137 2144 2138 /* Get Jacobian determinant: */ … … 2697 2691 /* Start looping on the number of gaussian points: */ 2698 2692 Gauss* gauss=element->NewGauss(2); 2699 for(int ig=gauss->begin();ig<gauss->end();ig++){ 2700 2701 gauss->GaussPoint(ig); 2693 while(gauss->next()){ 2702 2694 2703 2695 /* Get Jacobian determinant: */ … … 2752 2744 /* Start looping on the number of gaussian points: */ 2753 2745 Gauss* gauss=element->NewGauss(2); 2754 for(int ig=gauss->begin();ig<gauss->end();ig++){ 2755 2756 gauss->GaussPoint(ig); 2746 while(gauss->next()){ 2757 2747 2758 2748 /* Get Jacobian determinant: */ … … 2871 2861 /* Start looping on the number of gaussian points: */ 2872 2862 Gauss* gauss=element->NewGauss(2); 2873 for(int ig=gauss->begin();ig<gauss->end();ig++){ 2874 2875 gauss->GaussPoint(ig); 2863 while(gauss->next()){ 2876 2864 2877 2865 /* Get Jacobian determinant: */ … … 4148 4136 Gauss* gauss=element->NewGauss(2); 4149 4137 error=0.; 4150 for(int ig=gauss->begin();ig<gauss->end();ig++){ 4151 gauss->GaussPoint(ig); 4138 while(gauss->next()){ 4152 4139 element->JacobianDeterminant(&Jdet,xyz_list,gauss); 4153 4140 element->NodalFunctions(basis,gauss); … … 4212 4199 /*Get the gradient of thickness at the center point (in fact, GradH is constante over the element)*/ 4213 4200 Gauss* gauss=element->NewGauss(1); 4214 gauss->GaussPoint( gauss->begin());4201 gauss->GaussPoint(0); 4215 4202 element->ValueP1DerivativesOnGauss(GradH,H,xyz_list,gauss); 4216 4203 … … 4295 4282 /*Get the gradient of thickness*/ 4296 4283 Gauss* gaussH=element->NewGauss(1); 4297 gaussH->GaussPoint( gaussH->begin());4284 gaussH->GaussPoint(0); 4298 4285 element->ValueP1DerivativesOnGauss(GradH,H,xyz_list,gaussH); 4299 4286 /*Integrate*/ 4300 4287 Gauss* gauss=element->NewGauss(2); 4301 4288 error=0.; 4302 for(int ig=gauss->begin();ig<gauss->end();ig++){ 4303 gauss->GaussPoint(ig); 4289 while(gauss->next()){ 4304 4290 element->JacobianDeterminant(&Jdet,xyz_list,gauss); 4305 4291 element->NodalFunctions(basis,gauss); -
issm/trunk-jpl/src/c/classes/Loads/Channel.cpp
r25386 r25446 403 403 /* Start looping on the number of gaussian points: */ 404 404 Gauss* gauss=new GaussTria(index1,index2,2); 405 for(int ig=gauss->begin();ig<gauss->end();ig++){ 406 gauss->GaussPoint(ig); 405 while(gauss->next()){ 407 406 408 407 tria->GetSegmentJacobianDeterminant(&Jdet,&xyz_list[0][0],gauss); … … 534 533 /* Start looping on the number of gaussian points: */ 535 534 Gauss* gauss=new GaussTria(index1,index2,2); 536 for(int ig=gauss->begin();ig<gauss->end();ig++){ 537 gauss->GaussPoint(ig); 535 while(gauss->next()){ 538 536 539 537 tria->GetSegmentJacobianDeterminant(&Jdet,&xyz_list[0][0],gauss); -
issm/trunk-jpl/src/c/classes/Loads/Neumannflux.cpp
r25386 r25446 368 368 /* Start looping on the number of gaussian points: */ 369 369 GaussTria* gauss=new GaussTria(index1,index2,2); 370 for(int ig=gauss->begin();ig<gauss->end();ig++){ 371 372 gauss->GaussPoint(ig); 370 while(gauss->next()){ 373 371 374 372 tria->GetSegmentJacobianDeterminant(&Jdet,&xyz_list[0][0],gauss); … … 412 410 /* Start looping on the number of gaussian points: */ 413 411 GaussTria* gauss=new GaussTria(index1,index2,2); 414 for(int ig=gauss->begin();ig<gauss->end();ig++){ 415 416 gauss->GaussPoint(ig); 412 while(gauss->next()){ 417 413 418 414 tria->GetSegmentJacobianDeterminant(&Jdet,&xyz_list[0][0],gauss); -
issm/trunk-jpl/src/c/classes/Loads/Numericalflux.cpp
r25386 r25446 541 541 /* Start looping on the number of gaussian points: */ 542 542 gauss=new GaussTria(index1,index2,2); 543 for(int ig=gauss->begin();ig<gauss->end();ig++){ 544 545 gauss->GaussPoint(ig); 543 while(gauss->next()){ 546 544 547 545 tria->GetSegmentNodalFunctions(&basis[0],gauss,index1,index2,tria->FiniteElement()); … … 598 596 int index2=tria->GetVertexIndex(vertices[1]); 599 597 GaussTria* gauss=new GaussTria(index1,index2,2); 600 for(int ig=gauss->begin();ig<gauss->end();ig++){ 601 602 gauss->GaussPoint(ig); 598 while(gauss->next()){ 603 599 604 600 tria->GetSegmentNodalFunctions(&basis_plus[0] ,gauss,index1,index2,tria->FiniteElement()); … … 713 709 /* Start looping on the number of gaussian points: */ 714 710 gauss=new GaussTria(index1,index2,2); 715 for(int ig=gauss->begin();ig<gauss->end();ig++){ 716 717 gauss->GaussPoint(ig); 711 while(gauss->next()){ 718 712 719 713 tria->GetSegmentNodalFunctions(&basis[0],gauss,index1,index2,tria->FiniteElement()); … … 771 765 int index2=tria->GetVertexIndex(vertices[1]); 772 766 GaussTria* gauss=new GaussTria(index1,index2,2); 773 for(int ig=gauss->begin();ig<gauss->end();ig++){ 774 775 gauss->GaussPoint(ig); 767 while(gauss->next()){ 776 768 777 769 tria->GetSegmentNodalFunctions(&basis_plus[0] ,gauss,index1,index2,tria->FiniteElement()); … … 890 882 /* Start looping on the number of gaussian points: */ 891 883 gauss=new GaussTria(index1,index2,2); 892 for(int ig=gauss->begin();ig<gauss->end();ig++){ 893 894 gauss->GaussPoint(ig); 884 while(gauss->next()){ 895 885 896 886 tria->GetSegmentNodalFunctions(&basis[0],gauss,index1,index2,tria->FiniteElement()); … … 971 961 /* Start looping on the number of gaussian points: */ 972 962 gauss=new GaussTria(index1,index2,2); 973 for(int ig=gauss->begin();ig<gauss->end();ig++){ 974 975 gauss->GaussPoint(ig); 963 while(gauss->next()){ 976 964 977 965 tria->GetSegmentNodalFunctions(&basis[0],gauss,index1,index2,tria->FiniteElement()); -
issm/trunk-jpl/src/c/classes/gauss/Gauss.h
r25438 r25446 12 12 13 13 virtual ~Gauss(){}; 14 virtual int begin(void)=0;15 14 virtual void Echo(void)=0; 16 virtual int end(void)=0;17 15 virtual void Reset(void)=0; 18 16 virtual bool next(void)=0; -
issm/trunk-jpl/src/c/classes/gauss/GaussPenta.cpp
r25438 r25446 466 466 467 467 /*Methods*/ 468 int GaussPenta::begin(void){/*{{{*/469 470 /*Check that this has been initialized*/471 _assert_(numgauss>0);472 _assert_(weights);473 _assert_(coords1);474 _assert_(coords2);475 _assert_(coords3);476 _assert_(coords4);477 478 /*return first gauss index*/479 return 0;480 }481 /*}}}*/482 468 void GaussPenta::Echo(void){/*{{{*/ 483 469 … … 522 508 _printf_(" coord4 = " << coord4 << "\n"); 523 509 524 }525 /*}}}*/526 int GaussPenta::end(void){/*{{{*/527 528 /*Check that this has been initialized*/529 _assert_(numgauss>0);530 _assert_(weights);531 _assert_(coords1);532 _assert_(coords2);533 _assert_(coords3);534 _assert_(coords4);535 536 /*return last gauss index +1*/537 return numgauss;538 510 } 539 511 /*}}}*/ -
issm/trunk-jpl/src/c/classes/gauss/GaussPenta.h
r25438 r25446 43 43 /*Methods*/ 44 44 bool next(void); 45 int begin(void);46 45 void Echo(void); 47 int end(void);48 46 int Enum(void); 49 47 void GaussFaceTria(int index1, int index2, int index3, int order); -
issm/trunk-jpl/src/c/classes/gauss/GaussSeg.cpp
r25438 r25446 77 77 78 78 /*Methods*/ 79 int GaussSeg::begin(void){/*{{{*/80 81 /*Check that this has been initialized*/82 _assert_(numgauss>0);83 _assert_(weights);84 _assert_(coords1);85 86 /*return first gauss index*/87 return 0;88 }89 /*}}}*/90 79 void GaussSeg::Echo(void){/*{{{*/ 91 80 … … 107 96 _printf_(" coord1 = " << coord1 << "\n"); 108 97 109 }110 /*}}}*/111 int GaussSeg::end(void){/*{{{*/112 113 /*Check that this has been initialized*/114 _assert_(numgauss>0);115 _assert_(weights);116 _assert_(coords1);117 118 /*return last gauss index +1*/119 return numgauss;120 98 } 121 99 /*}}}*/ -
issm/trunk-jpl/src/c/classes/gauss/GaussSeg.h
r25438 r25446 31 31 /*Methods*/ 32 32 bool next(void); 33 int begin(void);34 33 void Echo(void); 35 int end(void);36 34 int Enum(void); 37 35 void GaussPoint(int ig); -
issm/trunk-jpl/src/c/classes/gauss/GaussTetra.cpp
r25438 r25446 97 97 98 98 /*Methods*/ 99 int GaussTetra::begin(void){/*{{{*/100 101 /*Check that this has been initialized*/102 _assert_(numgauss>0);103 _assert_(weights);104 _assert_(coords1);105 _assert_(coords2);106 _assert_(coords3);107 _assert_(coords4);108 109 /*return first gauss index*/110 return 0;111 }112 /*}}}*/113 99 void GaussTetra::Echo(void){/*{{{*/ 114 100 … … 153 139 _printf_(" coord4 = " << coord4 << "\n"); 154 140 155 }156 /*}}}*/157 int GaussTetra::end(void){/*{{{*/158 159 /*Check that this has been initialized*/160 _assert_(numgauss>0);161 _assert_(weights);162 _assert_(coords1);163 _assert_(coords2);164 _assert_(coords3);165 _assert_(coords4);166 167 /*return last gauss index +1*/168 return numgauss;169 141 } 170 142 /*}}}*/ -
issm/trunk-jpl/src/c/classes/gauss/GaussTetra.h
r25438 r25446 37 37 /*Methods*/ 38 38 bool next(void); 39 int begin(void);40 39 void Echo(void); 41 int end(void);42 40 int Enum(void); 43 41 void GaussPoint(int ig); -
issm/trunk-jpl/src/c/classes/gauss/GaussTria.cpp
r25442 r25446 426 426 427 427 /*Methods*/ 428 int GaussTria::begin(void){/*{{{*/429 430 /*Check that this has been initialized*/431 _assert_(numgauss>0);432 _assert_(weights);433 _assert_(coords1);434 _assert_(coords2);435 _assert_(coords3);436 437 /*return first gauss index*/438 return 0;439 }440 /*}}}*/441 428 void GaussTria::Echo(void){/*{{{*/ 442 429 … … 474 461 _printf_(" coord3 = " << coord3 << "\n"); 475 462 476 }477 /*}}}*/478 int GaussTria::end(void){/*{{{*/479 480 /*Check that this has been initialized*/481 _assert_(numgauss>0);482 _assert_(weights);483 _assert_(coords1);484 _assert_(coords2);485 _assert_(coords3);486 487 /*return last gauss index +1*/488 return numgauss;489 463 } 490 464 /*}}}*/ -
issm/trunk-jpl/src/c/classes/gauss/GaussTria.h
r25442 r25446 39 39 /*Methods*/ 40 40 bool next(void); 41 int begin(void);42 41 void Echo(void); 43 int end(void);44 42 int Enum(void); 45 43 void GaussEdgeCenter(int index1,int index2); -
issm/trunk-jpl/src/c/modules/DragCoefficientAbsGradientx/DragCoefficientAbsGradientx.cpp
r25379 r25446 77 77 /* Start looping on the number of gaussian points: */ 78 78 Gauss* gauss=basalelement->NewGauss(2); 79 for(int ig=gauss->begin();ig<gauss->end();ig++){ 80 81 gauss->GaussPoint(ig); 79 while(gauss->next()){ 82 80 83 81 /* Get Jacobian determinant: */ -
issm/trunk-jpl/src/c/modules/RheologyBAbsGradientx/RheologyBAbsGradientx.cpp
r25379 r25446 59 59 /* Start looping on the number of gaussian points: */ 60 60 Gauss* gauss=element->NewGauss(2); 61 for(int ig=gauss->begin();ig<gauss->end();ig++){ 62 63 gauss->GaussPoint(ig); 61 while(gauss->next()){ 64 62 65 63 /* Get Jacobian determinant: */ … … 131 129 /* Start looping on the number of gaussian points: */ 132 130 Gauss* gauss=element->NewGauss(2); 133 for(int ig=gauss->begin();ig<gauss->end();ig++){ 134 135 gauss->GaussPoint(ig); 131 while(gauss->next()){ 136 132 137 133 /* Get Jacobian determinant: */ -
issm/trunk-jpl/src/c/modules/RheologyBbarAbsGradientx/RheologyBbarAbsGradientx.cpp
r25379 r25446 65 65 /* Start looping on the number of gaussian points: */ 66 66 Gauss* gauss=basalelement->NewGauss(2); 67 for(int ig=gauss->begin();ig<gauss->end();ig++){ 68 69 gauss->GaussPoint(ig); 67 while(gauss->next()){ 70 68 71 69 /* Get Jacobian determinant: */ -
issm/trunk-jpl/src/c/modules/SurfaceAbsVelMisfitx/SurfaceAbsVelMisfitx.cpp
r25379 r25446 72 72 /* Start looping on the number of gaussian points: */ 73 73 Gauss* gauss=topelement->NewGauss(2); 74 for(int ig=gauss->begin();ig<gauss->end();ig++){ 75 76 gauss->GaussPoint(ig); 74 while(gauss->next()){ 77 75 78 76 /* Get Jacobian determinant: */ -
issm/trunk-jpl/src/c/modules/SurfaceAverageVelMisfitx/SurfaceAverageVelMisfitx.cpp
r25379 r25446 80 80 /* Start looping on the number of gaussian points: */ 81 81 Gauss* gauss=topelement->NewGauss(3); 82 for(int ig=gauss->begin();ig<gauss->end();ig++){ 83 84 gauss->GaussPoint(ig); 82 while(gauss->next()){ 85 83 86 84 /* Get Jacobian determinant: */ -
issm/trunk-jpl/src/c/modules/SurfaceLogVelMisfitx/SurfaceLogVelMisfitx.cpp
r25379 r25446 74 74 /* Start looping on the number of gaussian points: */ 75 75 Gauss* gauss=topelement->NewGauss(4); 76 for(int ig=gauss->begin();ig<gauss->end();ig++){ 77 78 gauss->GaussPoint(ig); 76 while(gauss->next()){ 79 77 80 78 /* Get Jacobian determinant: */ -
issm/trunk-jpl/src/c/modules/SurfaceLogVxVyMisfitx/SurfaceLogVxVyMisfitx.cpp
r25379 r25446 74 74 /* Start looping on the number of gaussian points: */ 75 75 Gauss* gauss=topelement->NewGauss(4); 76 for(int ig=gauss->begin();ig<gauss->end();ig++){ 77 78 gauss->GaussPoint(ig); 76 while(gauss->next()){ 79 77 80 78 /* Get Jacobian determinant: */ -
issm/trunk-jpl/src/c/modules/SurfaceRelVelMisfitx/SurfaceRelVelMisfitx.cpp
r25379 r25446 74 74 /* Start looping on the number of gaussian points: */ 75 75 Gauss* gauss=topelement->NewGauss(4); 76 for(int ig=gauss->begin();ig<gauss->end();ig++){ 77 78 gauss->GaussPoint(ig); 76 while(gauss->next()){ 79 77 80 78 /* Get Jacobian determinant: */ -
issm/trunk-jpl/src/c/modules/ThicknessAbsMisfitx/ThicknessAbsMisfitx.cpp
r25379 r25446 50 50 /* Start looping on the number of gaussian points: */ 51 51 Gauss* gauss=element->NewGauss(2); 52 for(int ig=gauss->begin();ig<gauss->end();ig++){ 53 54 gauss->GaussPoint(ig); 52 while(gauss->next()){ 55 53 56 54 /* Get Jacobian determinant: */ -
issm/trunk-jpl/src/c/modules/ThicknessAcrossGradientx/ThicknessAcrossGradientx.cpp
r25379 r25446 53 53 /* Start looping on the number of gaussian points: */ 54 54 Gauss* gauss=element->NewGauss(2); 55 for(int ig=gauss->begin();ig<gauss->end();ig++){ 56 57 gauss->GaussPoint(ig); 55 while(gauss->next()){ 58 56 59 57 /* Get Jacobian determinant: */ -
issm/trunk-jpl/src/c/modules/ThicknessAlongGradientx/ThicknessAlongGradientx.cpp
r25379 r25446 53 53 /* Start looping on the number of gaussian points: */ 54 54 Gauss* gauss=element->NewGauss(2); 55 for(int ig=gauss->begin();ig<gauss->end();ig++){ 56 57 gauss->GaussPoint(ig); 55 while(gauss->next()){ 58 56 59 57 /* Get Jacobian determinant: */
Note:
See TracChangeset
for help on using the changeset viewer.