Easily switch off preCICE
まだ誰も着手していません。
評価
調査の方向性
まず、公開されているpreciceモジュールと、例に示されているInterfaceエントリーポイントを調べてください。turn_off状態がInterfaceの構築と後続の呼び出しにどのような影響を与えるかを確認し、そのうえですべてのpreCICE呼び出しがno-opになり、単一物理のPythonコードが通常どおり継続して動作することを検証してください。
索引モデルが issue の本文から書いたものです。
説明
Oftentimes, you want to run a coupled code in single-physics mode, so without preCICE. For codes like OpenFOAM or FEniCS, we would handle this in the adapter. As the Python bindings are also used in codes without adapters (e.g. Nutils) and the codes don't need compiling (Python), it would be really great if there was a simple "switch off" mechanism.
Say
import precice
precice.turn_off()
...
interface = precice.Interface("Solid", "../precice-config.xml", 0, 1)
...
vertex_ids = interface.set_mesh_vertices(mesh_id, vertices)
Then all preCICE calls should be NOPs.
This prevents us from polluting compact codes with a lot of
if(precice_used):
interface = precice.Interface("Solid", "../precice-config.xml", 0, 1)
Is there a standard Python way how to do this? If not, could we handle it in the Python bindings?
I don't think we need this feature for other bindings as there we have longer codes and/or adapters and we compile. Do you agree?
- 主要言語
- Cython
- スター
- 30
- フォーク
- 19
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
precice/python-bindings のほかの issue
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
precice/python-bindings#258 · リアクション 1 件 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
precice/python-bindings#175 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
precice/python-bindings#255 ·
-
good first issue
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
precice/python-bindings#248 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
precice/python-bindings#238 · コメント 6 件 ·
precice/python-bindings の issue をすべて見る
似ている issue
-
priority: low 🌱 type: enhancement 💅🏼
難易度 2/5 半日 初心者へのやさしさ 84/100
nebari-dev/llm-serving-pack#199 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
linebender/parley#849 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
rohitg00/agentmemory#1428 ·
メンテナーはふだん 1 日以内に返信