MetOffice / MetOffice/lfric-baf

lfric-atm does not run in intel-classic full-debug mode

Open
#48 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Fortran
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Stack trace:

20250526173202.077+1000:S72:INFO : Field Min/max dtheta slow =      -0.03611857       0.00000000
forrtl: warning (406): fort: (1): In call to BDY_IMPL3, an array temporary was created for argument #22
Image              PC                Routine            Line        Source             
lfric_atm          00000000010C3046  bl_imp_kernel_mod         373  bl_imp_kernel_mod.f90
lfric_atm          000000000104C00C  bl_imp_alg_mod_ps         784  bl_imp_alg_mod_psy.f90
lfric_atm          00000000010201F3  bl_imp_alg_mod_mp         277  bl_imp_alg_mod.f90
lfric_atm          0000000002D7020C  fast_physics_alg_         123  fast_physics_alg_mod.f90
lfric_atm          0000000007234DD6  semi_implicit_tim         463  semi_implicit_timestep_alg_mod.f90
lfric_atm          0000000007224BD0  semi_implicit_tim         197  semi_implicit_timestep_alg_mod.f90
lfric_atm          000000000368FBA9  gungho_step_mod_m         156  gungho_step_mod.f90
lfric_atm          000000000361C7DD  gungho_driver_mod         390  gungho_driver_mod.f90
lfric_atm          0000000004ACAFE9  MAIN__                     78  lfric_atm.f90
lfric_atm          000000000042590D  Unknown               Unknown  Unknown
libc-2.28.so       000014A93EE4F7E5  __libc_start_main     Unknown  Unknown
lfric_atm          000000000042582E  Unknown               Unknown  Unknown

Looks like a check-all (which includes temporary arrays creation) causes this abort.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing lfric_atm in Intel Classic full-debug mode with check-all enabled. Inspect bl_imp_kernel_mod.f90 at line 373 and the stack-trace callers in bl_imp_alg_mod_psy.f90, bl_imp_alg.f90, and fast_physics_alg_mod.f90. Done means the full-debug run no longer aborts during the BDY_IMPL3 array-temporary warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
fortran
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.