Skip to content

diag integral error during output with intel 2024.2 #1623

Closed
@rem1776

Description

Describe the bug
The diag_integral unit tests are failing when compiled with oneapi 2024.2 (ifort+icx) and debug flags. The culprit seems to be this attempt at a list comprehension when it writes out field averages:

if (diag_unit /= 0) then
write (diag_unit,format_data(1:nd)) &
xtime, (field_avg(i),i=nst,nend)
else
write (*, format_data(1:nd)) &
xtime, (field_avg(i),i=nst,nend)
endif

This isn't valid fortran as far as i know so I have no idea how its working.

To Reproduce
compile with oneapi 2024.2 and debug flags (FCFLAGS=-traceback -g -O0 -check -check noarg_temp_created -check nopointer -warn -warn noerrors -fpe0 -ftrapuv)

Expected behavior
Code shouldn't crash with debug flags.

System Environment
AMD dev box

Additional context
The format code used in the output seems like it needs some adjusting, otherwise this would be a much easier fix

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions