Changeset 24964


Ignore:
Timestamp:
06/03/20 17:54:21 (5 years ago)
Author:
Eric.Larour
Message:

CHG: Casting of RESTRICT pointers.

File:
1 edited

Legend:

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

    r24963 r24964  
    55975597        #ifdef _HAVE_RESTRICT_
    55985598        IssmDouble* __restrict__ G=NULL;
    5599         IssmDouble* __restrict__GU=NULL;
    5600         IssmDouble* __restrict__GN=NULL;
    5601         IssmDouble* __restrict__GE=NULL;
    5602         IssmDouble* __restrict__G_elastic_precomputed=NULL;
    5603         IssmDouble* __restrict__G_rigid_precomputed=NULL;
    5604         IssmDouble* __restrict__U_elastic_precomputed=NULL;
    5605         IssmDouble* __restrict__H_elastic_precomputed=NULL;
     5599        IssmDouble* __restrict__ GU=NULL;
     5600        IssmDouble* __restrict__ GN=NULL;
     5601        IssmDouble* __restrict__ GE=NULL;
     5602        IssmDouble* __restrict__ G_elastic_precomputed=NULL;
     5603        IssmDouble* __restrict__ G_rigid_precomputed=NULL;
     5604        IssmDouble* __restrict__ U_elastic_precomputed=NULL;
     5605        IssmDouble* __restrict__ H_elastic_precomputed=NULL;
     5606        IssmDouble* __restrict__ indices=NULL;
    56065607        #else
    56075608        IssmDouble* G=NULL;
     
    56135614        IssmDouble* U_elastic_precomputed=NULL;
    56145615        IssmDouble* H_elastic_precomputed=NULL;
     5616        IssmDouble* indices=NULL;
    56155617        #endif
    56165618 
    56175619        /*elastic green function:*/
    5618         IssmDouble* indices=NULL;
    56195620        int index;
    56205621        int         M;
     
    56365637        /*recover precomputed green function kernels:*/
    56375638        DoubleVecParam* parameter = static_cast<DoubleVecParam*>(this->parameters->FindParamObject(SealevelriseGRigidEnum)); _assert_(parameter);
    5638         parameter->GetParameterValueByPointer(&G_rigid_precomputed,&M);
     5639        parameter->GetParameterValueByPointer((IssmDouble**)&G_rigid_precomputed,&M);
    56395640
    56405641        parameter = static_cast<DoubleVecParam*>(this->parameters->FindParamObject(SealevelriseGElasticEnum)); _assert_(parameter);
    5641         parameter->GetParameterValueByPointer(&G_elastic_precomputed,&M);
     5642        parameter->GetParameterValueByPointer((IssmDouble**)&G_elastic_precomputed,&M);
    56425643
    56435644        parameter = static_cast<DoubleVecParam*>(this->parameters->FindParamObject(SealevelriseHElasticEnum)); _assert_(parameter);
    5644         parameter->GetParameterValueByPointer(&H_elastic_precomputed,&M);
     5645        parameter->GetParameterValueByPointer((IssmDouble**)&H_elastic_precomputed,&M);
    56455646
    56465647        parameter = static_cast<DoubleVecParam*>(this->parameters->FindParamObject(SealevelriseUElasticEnum)); _assert_(parameter);
    5647         parameter->GetParameterValueByPointer(&U_elastic_precomputed,&M);
     5648        parameter->GetParameterValueByPointer((IssmDouble**)&U_elastic_precomputed,&M);
    56485649
    56495650        /*allocate indices:*/
Note: See TracChangeset for help on using the changeset viewer.