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/ireduce_domain_to_scalar_attr.F90

    r1492 r2620  
    88  USE ireduce_domain_to_scalar 
    99  USE reduce_domain_to_scalar_interface_attr 
     10  USE LOGICAL_BOOL_CONVERSION 
    1011 
    1112CONTAINS 
     
    5354      IF (PRESENT(local_)) THEN 
    5455        local__tmp = local_ 
     56        CALL xios_logical_to_bool_0d(local__tmp) 
    5557        CALL cxios_set_reduce_domain_to_scalar_local & 
    5658      (reduce_domain_to_scalar_hdl%daddr, local__tmp) 
     
    107109        CALL cxios_get_reduce_domain_to_scalar_local & 
    108110      (reduce_domain_to_scalar_hdl%daddr, local__tmp) 
     111        CALL xios_bool_to_logical_0d(local__tmp) 
    109112        local_ = local__tmp 
    110113      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.