Changeset 25445
- Timestamp:
- 08/21/20 20:00:14 (5 years ago)
- Location:
- issm/trunk-jpl/src/c/classes/Elements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r25406 r25445 520 520 /*Start looping on Gaussian points*/ 521 521 Gauss* gauss=this->NewGaussBase(xyz_list,&xyz_front[0][0],3); 522 for(int ig=gauss->begin();ig<gauss->end();ig++){ 523 524 gauss->GaussPoint(ig); 522 while(gauss->next()){ 525 523 thickness_input->GetInputValue(&thickness,gauss); 526 524 calvingratex_input->GetInputValue(&calvingratex,gauss); … … 648 646 /*Start looping on Gaussian points*/ 649 647 Gauss* gauss=this->NewGaussBase(xyz_list,&xyz_front[0][0],3); 650 for(int ig=gauss->begin();ig<gauss->end();ig++){ 651 652 gauss->GaussPoint(ig); 648 while(gauss->next()){ 653 649 thickness_input->GetInputValue(&thickness,gauss); 654 650 calvingratex_input->GetInputValue(&calvingratex,gauss); … … 728 724 /* Start looping on the number of gaussian points: */ 729 725 gauss=new GaussPenta(0,1,2,2); 730 for(int ig=gauss->begin();ig<gauss->end();ig++){ 731 732 gauss->GaussPoint(ig); 726 while(gauss->next()){ 733 727 734 728 /*Compute strain rate viscosity and pressure: */ … … 2050 2044 /*Start looping on Gaussian points*/ 2051 2045 Gauss* gauss=this->NewGaussBase(xyz_list,&xyz_front[0][0],3); 2052 for(int ig=gauss->begin();ig<gauss->end();ig++){ 2053 2054 gauss->GaussPoint(ig); 2046 while(gauss->next()){ 2055 2047 thickness_input->GetInputValue(&thickness,gauss); 2056 2048 vx_input->GetInputValue(&vx,gauss); … … 2172 2164 /*Start looping on Gaussian points*/ 2173 2165 Gauss* gauss=this->NewGaussBase(xyz_list,&xyz_front[0][0],3); 2174 for(int ig=gauss->begin();ig<gauss->end();ig++){ 2175 2176 gauss->GaussPoint(ig); 2166 while(gauss->next()){ 2177 2167 thickness_input->GetInputValue(&thickness,gauss); 2178 2168 vx_input->GetInputValue(&vx,gauss); … … 2289 2279 } 2290 2280 /*Integrate over edge*/ 2291 for(int ig=gauss[iv]->begin();ig<gauss[iv]->end();ig++){2292 gauss[iv]->GaussPoint(ig);2281 gauss[iv]->Reset(); 2282 while(gauss[iv]->next()){ 2293 2283 penta->JacobianDeterminantLine(&Jdet,&xyz_list_line[0][0],gauss[iv]); 2294 2284 original_input->GetInputValue(&value,gauss[iv]); … … 3619 3609 for(int ig=0;ig<3;ig++){ 3620 3610 GaussPenta* gauss=new GaussPenta(ig,3+ig,11); 3621 for (int iv=gauss->begin();iv<gauss->end();iv++){ 3622 gauss->GaussPoint(iv); 3611 while(gauss->next()){ 3623 3612 3624 3613 /* Get the value we need*/ … … 3839 3828 /*Start looping on Gaussian points*/ 3840 3829 Gauss* gauss=this->NewGaussBase(xyz_list,&xyz_front[0][0],3); 3841 for(int ig=gauss->begin();ig<gauss->end();ig++){ 3842 3843 gauss->GaussPoint(ig); 3830 while(gauss->next()){ 3844 3831 thickness_input->GetInputValue(&thickness,gauss); 3845 3832 calvingratex_input->GetInputValue(&calvingratex,gauss); … … 3966 3953 /*Start looping on Gaussian points*/ 3967 3954 Gauss* gauss=this->NewGaussBase(xyz_list,&xyz_front[0][0],3); 3968 for(int ig=gauss->begin();ig<gauss->end();ig++){ 3969 3970 gauss->GaussPoint(ig); 3955 while(gauss->next()){ 3971 3956 thickness_input->GetInputValue(&thickness,gauss); 3972 3957 calvingratex_input->GetInputValue(&calvingratex,gauss); … … 4015 4000 /* Start looping on the number of gaussian points: */ 4016 4001 gauss = this->NewGauss(point1,fraction1,fraction2,1-mainlyfloating,3); 4017 for(int ig=gauss->begin();ig<gauss->end();ig++){ 4018 4019 gauss->GaussPoint(ig); 4002 while(gauss->next()){ 4020 4003 this->JacobianDeterminantBase(&Jdet,&xyz_list[0][0],gauss); 4021 4004 floatingmelt_input->GetInputValue(&floatingmelt,gauss); … … 4060 4043 /* Start looping on the number of gaussian points: */ 4061 4044 gauss = this->NewGauss(point1,fraction1,fraction2,mainlyfloating,3); 4062 for(int ig=gauss->begin();ig<gauss->end();ig++){ 4063 4064 gauss->GaussPoint(ig); 4045 while(gauss->next()){ 4065 4046 this->JacobianDeterminantBase(&Jdet,&xyz_list[0][0],gauss); 4066 4047 groundedmelt_input->GetInputValue(&groundedmelt,gauss); -
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r25442 r25445 672 672 /*Start looping on Gaussian points*/ 673 673 Gauss* gauss=this->NewGauss(xyz_list,&xyz_front[0][0],3); 674 for(int ig=gauss->begin();ig<gauss->end();ig++){ 675 676 gauss->GaussPoint(ig); 674 while(gauss->next()){ 677 675 thickness_input->GetInputValue(&thickness,gauss); 678 676 calvingratex_input->GetInputValue(&calvingratex,gauss); … … 815 813 /*Start looping on Gaussian points*/ 816 814 Gauss* gauss=this->NewGauss(xyz_list,&xyz_front[0][0],3); 817 for(int ig=gauss->begin();ig<gauss->end();ig++){ 818 819 gauss->GaussPoint(ig); 815 while(gauss->next()){ 820 816 thickness_input->GetInputValue(&thickness,gauss); 821 817 calvingratex_input->GetInputValue(&calvingratex,gauss); … … 2645 2641 /*Start looping on Gaussian points*/ 2646 2642 Gauss* gauss=this->NewGauss(xyz_list,xyz_front,3); 2647 for(int ig=gauss->begin();ig<gauss->end();ig++){ 2648 2649 gauss->GaussPoint(ig); 2643 while(gauss->next()){ 2650 2644 thickness_input->GetInputValue(&thickness,gauss); 2651 2645 vx_input->GetInputValue(&vx,gauss); … … 2774 2768 /*Start looping on Gaussian points*/ 2775 2769 Gauss* gauss=this->NewGauss(xyz_list,&xyz_front[0][0],3); 2776 for(int ig=gauss->begin();ig<gauss->end();ig++){ 2777 2778 gauss->GaussPoint(ig); 2770 while(gauss->next()){ 2779 2771 thickness_input->GetInputValue(&thickness,gauss); 2780 2772 vx_input->GetInputValue(&vx,gauss); … … 2901 2893 /*Start looping on Gaussian points*/ 2902 2894 Gauss* gauss=this->NewGauss(xyz_list,&xyz_front[0][0],3); 2903 for(int ig=gauss->begin();ig<gauss->end();ig++){ 2904 2905 gauss->GaussPoint(ig); 2895 while(gauss->next()){ 2906 2896 thickness_input->GetInputValue(&thickness,gauss); 2907 2897 vx_input->GetInputValue(&vx,gauss); … … 3367 3357 volume=0; 3368 3358 3369 for(int ig=gauss->begin();ig<gauss->end();ig++){ 3370 gauss->GaussPoint(ig); 3359 while(gauss->next()){ 3371 3360 3372 3361 this->JacobianDeterminant(&Jdet,xyz_list,gauss); … … 3466 3455 /* Start looping on the number of gaussian points: */ 3467 3456 gauss=new GaussTria(2); 3468 for(int ig=gauss->begin();ig<gauss->end();ig++){ 3469 3470 gauss->GaussPoint(ig); 3457 while(gauss->next()){ 3471 3458 3472 3459 /* Get Jacobian determinant: */ … … 3505 3492 /* Start looping on the number of gaussian points: */ 3506 3493 gauss=new GaussTria(2); 3507 for(int ig=gauss->begin();ig<gauss->end();ig++){ 3508 3509 gauss->GaussPoint(ig); 3494 while(gauss->next()){ 3510 3495 3511 3496 /* Get Jacobian determinant: */ … … 4381 4366 /*Start looping on Gaussian points*/ 4382 4367 Gauss* gauss=this->NewGauss(xyz_list,&xyz_front[0][0],3); 4383 for(int ig=gauss->begin();ig<gauss->end();ig++){ 4384 4385 gauss->GaussPoint(ig); 4368 while(gauss->next()){ 4386 4369 thickness_input->GetInputValue(&thickness,gauss); 4387 4370 calvingratex_input->GetInputValue(&calvingratex,gauss); … … 4516 4499 /*Start looping on Gaussian points*/ 4517 4500 Gauss* gauss=this->NewGauss(xyz_list,&xyz_front[0][0],3); 4518 for(int ig=gauss->begin();ig<gauss->end();ig++){ 4519 4520 gauss->GaussPoint(ig); 4501 while(gauss->next()){ 4521 4502 thickness_input->GetInputValue(&thickness,gauss); 4522 4503 calvingratex_input->GetInputValue(&calvingratex,gauss); … … 4562 4543 /* Start looping on the number of gaussian points: */ 4563 4544 gauss = this->NewGauss(point1,fraction1,fraction2,1-mainlyfloating,3); 4564 for(int ig=gauss->begin();ig<gauss->end();ig++){ 4565 4566 gauss->GaussPoint(ig); 4545 while(gauss->next()){ 4567 4546 this->JacobianDeterminant(&Jdet,&xyz_list[0][0],gauss); 4568 4547 floatingmelt_input->GetInputValue(&floatingmelt,gauss); … … 4607 4586 /* Start looping on the number of gaussian points: */ 4608 4587 gauss = this->NewGauss(point1,fraction1,fraction2,mainlyfloating,2); 4609 for(int ig=gauss->begin();ig<gauss->end();ig++){ 4610 4611 gauss->GaussPoint(ig); 4588 while(gauss->next()){ 4612 4589 this->JacobianDeterminant(&Jdet,&xyz_list[0][0],gauss); 4613 4590 groundedmelt_input->GetInputValue(&groundedmelt,gauss); … … 5770 5747 total_weight=0; 5771 5748 I=0; 5772 for(int ig=gauss->begin();ig<gauss->end();ig++){5749 while(gauss->next()){ 5773 5750 IssmDouble Ig=0; 5774 gauss->GaussPoint(ig);5775 5751 deltathickness_input->GetInputValue(&Ig,gauss); 5776 5752 I+=Ig*gauss->weight;
Note:
See TracChangeset
for help on using the changeset viewer.