Ignore:
Timestamp:
03/21/24 10:13:06 (4 months ago)
Author:
jderouillat
Message:

Modify fortran-C interfaces to manage logical-bool conversion, the optimizations of OneAPI could produce bugs regarding the logical-bool encodings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS2/trunk/src/interface/fortran_attr/iaxis_attr.F90

    r2618 r2623  
    88  USE iaxis 
    99  USE axis_interface_attr 
     10  USE LOGICAL_BOOL_CONVERSION 
    1011 
    1112CONTAINS 
     
    237238        ALLOCATE(mask__tmp(SIZE(mask_,1))) 
    238239        mask__tmp = mask_ 
     240        CALL xios_logical_to_bool_1d(mask__tmp, SHAPE(mask__tmp)) 
    239241        CALL cxios_set_axis_mask & 
    240242      (axis_hdl%daddr, mask__tmp, SHAPE(mask_)) 
     
    515517        CALL cxios_get_axis_mask & 
    516518      (axis_hdl%daddr, mask__tmp, SHAPE(mask_)) 
     519        CALL xios_bool_to_logical_1d(mask__tmp, SHAPE(mask__tmp)) 
    517520        mask_ = mask__tmp 
    518521      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.