Changeset 24963


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

CHG: enabling restrict buffers if requested using a specific vendor.

File:
1 edited

Legend:

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

    r24959 r24963  
    55955595        IssmDouble x_element,y_element,z_element,x,y,z,dx,dy,dz,N_azim,E_azim;
    55965596
     5597        #ifdef _HAVE_RESTRICT_
     5598        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;
     5606        #else
    55975607        IssmDouble* G=NULL;
    55985608        IssmDouble* GU=NULL;
     
    56035613        IssmDouble* U_elastic_precomputed=NULL;
    56045614        IssmDouble* H_elastic_precomputed=NULL;
    5605 
     5615        #endif
     5616 
    56065617        /*elastic green function:*/
    56075618        IssmDouble* indices=NULL;
     
    57165727
    57175728        /*Free allocations:*/
     5729        #ifdef _HAVE_RESTRICT_
     5730        delete indices;
     5731        delete G;
     5732        delete GU;
     5733        if(horiz){
     5734                delete GN;
     5735                delete GE;
     5736        }
     5737        #else
    57185738        xDelete(indices);
    57195739        xDelete(G);
     
    57235743                xDelete(GE);
    57245744        }
     5745        #endif
    57255746
    57265747        return;
Note: See TracChangeset for help on using the changeset viewer.