19134984/-2d-3d-/fortran-build-run
Claude Code and agent skill by 19134984/-2d-3d-
- community
Checking that the SKILL.md file is still in the repository.
Compile, syntax-check, and smoke-test local Fortran sources in this repository, especially `2DRB.F90`, `3DRB.F90`, `3DRBOpenacc.F90`, `3DRBOpenaccMpi.F90`, and close variants. Use when Codex needs to choose the right baseline, pick `gfortran` vs `mpifort`, run `build_in_ascii_path.ps1`, do a safe syntax-only check first, or explain what could not be verified because the required compiler or runtime is unavailable.
Install
npx vskill@latest install 19134984/-2d-3d-/fortran-build-runSKILL.md
The same SKILL.md was published earlier as 19134984/-2d-3d-/fortran-build-run.
Fortran Build Run
Use this skill to verify Fortran edits in this repository without inventing a new build flow.
Baseline-first rule
Choose the closest approved core file before compiling or running:
2DRB.F90for 2D work3DRB.F90for 3D CPU work3DRBOpenacc.F90for 3D OpenACC work3DRBOpenaccMpi.F90for 3D MPI + OpenACC work
Treat reference codes as comparison material unless the user explicitly wants to build them.
Default workflow
- Inspect the source for
use mpi,!$acc, and case-selection macros. - Prefer a syntax-only pass before a full build.
- Prefer the repository build helper on Windows so the source is copied to an ASCII-safe temp path.
- Run a smoke test only when the binary and case size make it practical.
- Report exactly what was verified and what was not.
Repository build commands
Prefer build_in_ascii_path.ps1 for CPU or MPI-capable builds on Windows:
- Syntax check CPU baseline:
powershell -ExecutionPolicy Bypass -File .\build_in_ascii_path.ps1 -SourceFile 3DRB.F90 -SyntaxOnly- Compile CPU baseline:
powershell -ExecutionPolicy Bypass -File .\build_in_ascii_path.ps1 -SourceFile 3DRB.F90- Compile an MPI source that the local MPI wrapper can actually build:
powershell -ExecutionPolicy Bypass -File .\build_in_ascii_path.ps1 -SourceFile <file> -UseMpi
Use run.sh only when a matching executable already exists and the environment is Linux-like.
Compiler choice rules
- Use
gfortranthrough the build helper for plain CPU baselines. - Use
mpifortthrough the build helper only when the target source and wrapper support the needed modules. - Do not claim OpenACC compile verification unless an OpenACC-capable compiler such as
nvfortranornvcis actually available. - Do not treat OpenACC directives as "verified" just because a non-OpenACC compiler ignored them as comments.
Verification depth
Choose the lightest verification that still answers the task:
- Syntax-only for quick regression checks
- Full compile for code-generation confidence
- Short runtime smoke test for obvious crashes or startup failures
- Longer benchmark runs only when the user asked for validation or performance data
Guardrails
- Rebuild after changing preprocessor macros, not just Fortran statements.
- Do not trust stale executables if the source, macros, or compiler flags changed.
- Say explicitly when OpenACC or MPI runtime verification was not possible.
- Keep build and run notes short but concrete so later work can reuse them.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking2DRB/codex-skills/fortran-build-run/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/19134984/-2d-3d-/fortran-build-run)