Ignore:
Timestamp:
08/07/13 11:25:05 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: keep the exponent as an integer may execute faster (compiler dependent)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/shared/Numerics/GaussPoints.cpp

    r15104 r15741  
    14521452                                          *(5.+3.*egaus[j]-zgaus[k]-3.*egaus[j]*zgaus[k]);
    14531453                                        zeta      =sqrt(2./3.)*(1.+zgaus[k]);
    1454                                         (*pwgt)[ipt]=xwgt[i]*ewgt[j]*zwgt[k]
    1455                                           *(SQRT2/16.
    1456                                                                   *(1.-egaus[j])*pow(1.-zgaus[k],2.));
     1454                                        (*pwgt)[ipt]=xwgt[i]*ewgt[j]*zwgt[k]*(SQRT2/16.*(1.-egaus[j])*pow(1.-zgaus[k],2));
    14571455
    14581456                                        (*pl1 )[ipt]=(1.-xi-eta/SQRT3-zeta/sqrt(6.))/2.;
Note: See TracChangeset for help on using the changeset viewer.