Ignore:
Timestamp:
03/20/24 14:48:11 (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
  • XIOS3/trunk/src/interface/fortran_attr/iaxisgroup_attr.F90

    r2616 r2620  
    88  USE iaxis 
    99  USE axisgroup_interface_attr 
     10  USE LOGICAL_BOOL_CONVERSION 
    1011 
    1112CONTAINS 
     
    245246        ALLOCATE(mask__tmp(SIZE(mask_,1))) 
    246247        mask__tmp = mask_ 
     248        CALL xios_logical_to_bool_1d(mask__tmp, SHAPE(mask__tmp)) 
    247249        CALL cxios_set_axisgroup_mask & 
    248250      (axisgroup_hdl%daddr, mask__tmp, SHAPE(mask_)) 
     
    531533        CALL cxios_get_axisgroup_mask & 
    532534      (axisgroup_hdl%daddr, mask__tmp, SHAPE(mask_)) 
     535        CALL xios_bool_to_logical_1d(mask__tmp, SHAPE(mask__tmp)) 
    533536        mask_ = mask__tmp 
    534537      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.