Changeset 2396


Ignore:
Timestamp:
08/31/22 17:19:49 (21 months ago)
Author:
ymipsl
Message:

Add const attribute to argument.

YM

Location:
XIOS3/trunk/src/distribution
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/distribution/element.cpp

    r2267 r2396  
    8787 
    8888 
    89   CLocalElement::CLocalElement(int localRank, size_t globalSize, CArray<size_t,1>& globalIndex)  
     89  CLocalElement::CLocalElement(int localRank, size_t globalSize, const CArray<size_t,1>& globalIndex)  
    9090                             : CDistributedElement(globalSize, {{localRank, globalIndex}}), 
    9191                               globalIndex_(CDistributedElement::globalIndex_[localRank]), localSize_(CDistributedElement::localSize_[localRank]), localRank_(localRank) 
  • XIOS3/trunk/src/distribution/element.hpp

    r2267 r2396  
    5454  
    5555    public:  
    56       CLocalElement(int localRank, size_t globalSize, CArray<size_t,1>& globalIndex) ; 
     56      CLocalElement(int localRank, size_t globalSize, const CArray<size_t,1>& globalIndex) ; 
    5757      CLocalElement(int localRank, CEventServer& event) ; 
    5858      void recvFromClient(int localRank, CEventServer& event) ; 
Note: See TracChangeset for help on using the changeset viewer.