Ignore:
Timestamp:
08/21/20 20:09:49 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: removing loop on gauss points

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r25389 r25446  
    990990                /* Start  looping on the number of gaussian points: */
    991991                Gauss* gauss=element->NewGauss(2);
    992                 for(int ig=gauss->begin();ig<gauss->end();ig++){
    993 
    994                         gauss->GaussPoint(ig);
     992                while(gauss->next()){
    995993
    996994                        /* Get Jacobian determinant: */
     
    20802078                /* Start  looping on the number of gaussian points: */
    20812079                Gauss* gauss=element->NewGauss(2);
    2082                 for(int ig=gauss->begin();ig<gauss->end();ig++){
    2083 
    2084                         gauss->GaussPoint(ig);
     2080                while(gauss->next()){
    20852081
    20862082                        /* Get Jacobian determinant: */
     
    21382134                /* Start  looping on the number of gaussian points: */
    21392135                Gauss* gauss=element->NewGauss(2);
    2140                 for(int ig=gauss->begin();ig<gauss->end();ig++){
    2141 
    2142                         gauss->GaussPoint(ig);
     2136                while(gauss->next()){
    21432137
    21442138                        /* Get Jacobian determinant: */
     
    26972691                 /* Start  looping on the number of gaussian points: */
    26982692                 Gauss* gauss=element->NewGauss(2);
    2699                  for(int ig=gauss->begin();ig<gauss->end();ig++){
    2700 
    2701                          gauss->GaussPoint(ig);
     2693                 while(gauss->next()){
    27022694
    27032695                         /* Get Jacobian determinant: */
     
    27522744                /* Start  looping on the number of gaussian points: */
    27532745                Gauss* gauss=element->NewGauss(2);
    2754                 for(int ig=gauss->begin();ig<gauss->end();ig++){
    2755 
    2756                         gauss->GaussPoint(ig);
     2746                while(gauss->next()){
    27572747
    27582748                        /* Get Jacobian determinant: */
     
    28712861                /* Start  looping on the number of gaussian points: */
    28722862                Gauss* gauss=element->NewGauss(2);
    2873                 for(int ig=gauss->begin();ig<gauss->end();ig++){
    2874 
    2875                         gauss->GaussPoint(ig);
     2863                while(gauss->next()){
    28762864
    28772865                        /* Get Jacobian determinant: */
     
    41484136                Gauss* gauss=element->NewGauss(2);
    41494137        error=0.;
    4150                 for(int ig=gauss->begin();ig<gauss->end();ig++){
    4151         gauss->GaussPoint(ig);
     4138                while(gauss->next()){
    41524139                        element->JacobianDeterminant(&Jdet,xyz_list,gauss);
    41534140                        element->NodalFunctions(basis,gauss);
     
    42124199      /*Get the gradient of thickness at the center point (in fact, GradH is constante over the element)*/
    42134200      Gauss* gauss=element->NewGauss(1);
    4214       gauss->GaussPoint(gauss->begin());
     4201      gauss->GaussPoint(0);
    42154202      element->ValueP1DerivativesOnGauss(GradH,H,xyz_list,gauss);
    42164203
     
    42954282      /*Get the gradient of thickness*/
    42964283      Gauss* gaussH=element->NewGauss(1);
    4297       gaussH->GaussPoint(gaussH->begin());
     4284      gaussH->GaussPoint(0);
    42984285      element->ValueP1DerivativesOnGauss(GradH,H,xyz_list,gaussH);
    42994286      /*Integrate*/
    43004287      Gauss* gauss=element->NewGauss(2);
    43014288      error=0.;
    4302       for(int ig=gauss->begin();ig<gauss->end();ig++){
    4303          gauss->GaussPoint(ig);
     4289                while(gauss->next()){
    43044290         element->JacobianDeterminant(&Jdet,xyz_list,gauss);
    43054291         element->NodalFunctions(basis,gauss);
Note: See TracChangeset for help on using the changeset viewer.