ソース情報
- リポジトリ
- SWMFsoftware/FLEKS
- ソースの最終更新活動
- 2026年6月8日 18:52
- 検出された SKILL.md の言語
- 英語
- スター
- 4
- フォーク
- 2
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/SWMFsoftware/FLEKS --skill generate-docsコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SOC 職業分類に基づく
SKILL.md を表示中
| name | generate-docs |
| description | Build documentation from code comments and LaTeX sources |
This skill handles documentation generation for FLEKS.
| Type | Location |
|---|---|
| Algorithm documentation | docs/Algorithm.tex |
| Coding standards | docs/Coding_standards.md |
| Parameter documentation | PARAM.XML |
| User source templates | userfiles/*Source.h and Config.pl -u |
| Project overview (agent) | AGENT.md (root and subdirectories) |
cd docs
pdflatex Algorithm.tex
For full build with references:
cd docs
pdflatex Algorithm.tex
pdflatex Algorithm.tex # Run twice for references
open docs/Algorithm.pdf # macOS
The Algorithm.tex covers:
If you want to add Doxygen-style documentation:
brew install doxygen # macOS
# Run from FLEKS project root
doxygen -g
Key settings to modify:
PROJECT_NAME = "FLEKS"
INPUT = include src
FILE_PATTERNS = *.h *.cpp
EXTRACT_ALL = YES
GENERATE_LATEX = NO
doxygen Doxyfile
Output will be in html/index.html.
/**
* @brief A brief description of the class.
*
* A more detailed description of what this class does,
* its purpose, and usage patterns.
*/
class MyClass {
/**
* @brief Brief description of the function.
*
* @param param1 Description of first parameter
* @param param2 Description of second parameter
* @return Description of return value
*
* @note Any important notes about usage
* @warning Any warnings about side effects
*/
int my_function(int param1, double param2);
class MyClass {
private:
int count_; ///< Number of items processed
double tolerance_; ///< Convergence tolerance for solver
};
The PARAM.XML file documents all input parameter commands. It uses
SWMF's XML schema with <command>, <parameter>, <for>, and inline
description text. Example structure:
<command name="TIMESTEPPING"
alias="TIMESTEPPING_FLEKS0,TIMESTEPPING_FLEKS1"
multiple="T">
<parameter name="useFixedDt" type="logical" default="F"/>
<parameter name="dt" type="real" if="$useFixedDt"/>
<parameter name="cfl" type="real" default="0.2" if="not $useFixedDt"/>
#TIMESTEPPING
F useFixedDt
0.1 cfl (if useFixedDt is false)
Setting the CFL or fixed time step. The typical CFL number is 0.1~0.4.
</command>
When adding a new parameter command:
<command> block to PARAM.XMLread_param() method
(typically Domain.cpp or Pic.cpp)For user source behavior, keep #SOURCE in PARAM.XML aligned with
Domain.cpp and the selection workflow in Config.pl -u. Add reusable source
implementations under userfiles/*Source.h; include/UserSource.h is the
selected copy generated by Config.pl.
The project maintains AGENT.md files in key directories:
| File | Purpose |
|---|---|
AGENT.md | Root project overview, architecture, build system |
include/AGENT.md | Header file catalog and conventions |
src/AGENT.md | Implementation file guide and Makefile details |
srcInterface/AGENT.md | SWMF coupling layer documentation |
Update these when adding new classes, files, or changing architecture.
PARAM.XML is up-to-date with new parametersAlgorithm.tex reflects current implementationAGENT.md files updated for new files/classes