NCAR / NCAR/ccpp-framework

capgen's Fortran parser does not allow array bounds which are not Fortran identifiers

Open
#588 2 comments 0 reactions 2 assignees View on GitHub

@dustinswales is already working on this.

Since Sep 16, 2024.

bug
Dominant language
Python
Stars
25
Forks
67
Avg merge
3d 8h
Merged PRs (30d)
2

Description

Description

capgen cannot parse array declarations that use an explicit lower bound, for example as in this line with the lower bound being an argument to the scheme:
https://github.com/ufs-community/ccpp-physics/blob/44700d5e92f00524ade276062e1f7c50e554c0fb/physics/SFC_Models/Lake/CLM/clm_lake.f90#L364

Steps to Reproduce

MISSING @dustinswales will create a test for this so that it can be reproduced and fixed easily

Please provide detailed steps for reproducing the issue.

  1. step 1
  2. step 2
  3. see the bug...

Additional Context

This is a valid Fortran expression that capgen needs to be able to process

Output

MISSING

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.