Ignore:
Timestamp:
03/08/24 17:05:40 (4 months ago)
Author:
jderouillat
Message:

Fix the attached mode for scalar output, and some bugs revealed by the adastra porting in debug mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/io/nc4_data_output.cpp

    r2600 r2613  
    411411                       start[0]=domain->ibeginValue_; 
    412412                       count[0]=domain->niValue_; 
    413                        CArray<double,1> lon = domain->lonvalue(Range(0,domain->niValue_-1)); 
     413                       CArray<double,1> lon; 
     414                       lon.resize( domain->niValue_); 
     415                       for (int i=0;i<domain->niValue_;i++) lon(i) = domain->lonvalue(i); 
    414416                       SuperClassWriter::writeData(CArray<double,1>(lon.copy()), lonid, isCollective, 0,&start,&count); 
    415417                     } 
Note: See TracChangeset for help on using the changeset viewer.