소스 정보
- 저장소
- 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명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| 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