Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Only build MARBL if requested in compset longname / alias

オープン
#177 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
xml

調査の方向性

env_build.xml 内の MOM6_BUILD_MARBL エントリを特定し、config_component.xml の関連する変更を確認します。no_marbl test-mod ディレクトリと、それを使用するテストを確認します。非 MARBL compset がデフォルトでスタブを使用し、MARBL compset がライブラリと関連設定を有効にし、古い no_marbl テスト設定が削除されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Currently MARBL is built by default, regardless of whether the user requested it. We should switch to only building it when the compset specifies running MOM6 with the MARBL tracers:

  <entry id="MOM6_BUILD_MARBL">
    <type>char</type>
    <valid_values>TRUE,FALSE</valid_values>
-    <default_value>TRUE</default_value>
+    <default_value>FALSE</default_value>
+    <values>
+      <value compset="_MOM6%[^_]*MARBL">TRUE</value>
+    </values>
    <group>build_component_mom</group>
    <file>env_build.xml</file>
    <desc> This variable controls whether MOM6 builds with the full MARBL library (default) or just
           with stubs. If set to FALSE then setting USE_MARBL_TRACERS = True in the Parameters file
-           will result in a runtime error. It is recommended to leave this variable set to TRUE, it
-           exists to allow testing of the MARBL stub in the CESM test suite.
+           will result in a runtime error.
    </desc>
  </entry>

We don't want users to start with a G compset and try to add MARBL after the fact. The default PE layouts for compsets without MARBL are much smaller than the comparable layouts with MARBL enabled, so adding MARBL after create_newcase will run much slower unless the user changes NTASKS_OCN before building. Also there are a handful of env_run.xml changes that come through config_component.xml that would need to be set manually:

  • OCN_CO2_TYPE
  • MARBL_TRACER_OPTS
  • MARBL_CONFIG
  • MARBL_DIAG_MODE

A side benefit is that this would allow us to remove cime_config/testdefs/testmods_dirs/mom/no_marbl/ and the lone test using that directory in the test suite because every non-MARBL compset would test the MARBL stub rather than the full library.

主要言語
Jupyter Notebook
スター
6
フォーク
23
平均マージ
2日 22時間
マージ済み PR(30日)
4

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ESCOMP/MOM_interface のほかの issue

ESCOMP/MOM_interface の issue をすべて見る

似ている issue

Build System の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。