NCAR / NCAR/ccpp-framework

Allow logging in CCPP physics schemes

Open
#439 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement post-capgen-unification
Dominant language
Python
Stars
25
Forks
67
Avg merge
3d 8h
Merged PRs (30d)
2

Description

Description

While the current rules prohibit a CCPP scheme from writing to a log file (any output), many developers would like to be able to log information from a scheme. This can be for diagnostic (e.g., debugging) or informational (e.g., process statistics) purposes.

Solution

Add two now CCPP standard names to allow the host model to control output from physics schemes:

  • log_output_unit (integer): Provides a Fortran unit for log output
  • do_log_output (logical): .true. on task(s) which are allowed to write to log_output_unit.

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 locating the CCPP standard-name definitions and the code that passes host-model values into physics schemes. Trace how scheme output restrictions are enforced and check any existing interface tests. Done means the two requested names are available to schemes and their controlled logging behavior is covered by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
fortran
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.