SkillAgentSearch skills...

Fargo3d

A versatile multifluid HD/MHD code that runs on clusters of CPUs or GPUs, with special emphasis on protoplanetary disks.

Install / Use

/learn @FARGO3D/Fargo3d

README

FARGO3D

A versatile MULTIFLUID HD/MHD code that runs on clusters of CPUs or GPUs, with special emphasis on protoplanetary disks.

Documentation

Report bugs to the issues section or to the Google group.

First run

Sequential CPU

make SETUP=fargo PARALLEL=0 GPU=0
./fargo3d setups/fargo/fargo.par

Parallel CPU

make SETUP=fargo PARALLEL=1 GPU=0
mpirun -np 8 ./fargo3d setups/fargo/fargo.par

Sequential GPU

make SETUP=fargo PARALLEL=0 GPU=1
./fargo3d setups/fargo/fargo.par

Parallel GPU

make SETUP=fargo PARALLEL=1 GPU=1
mpirun -np 2 ./fargo3d setups/fargo/fargo.par

Description of subdirectories:

  • in/: setup parameter files. Equivalent to the .par files in the setup/ subdirectory.

  • planets/: planets configuration files.

  • scripts/: scripts used to build the code.

  • setups/: custom setup definitions.

  • src/: source files. These files can be copied to the setups/ subdirectory and modified there. The makefile uses the VPATH variable to decide in which order a given source file is sought within different directories (the setup/ subdirectory has higher prority than src).

  • std/: standard or default definitions. These definitions include standard boundary conditions, units, scaling rules, default setup parameters, etc.

  • test_suite/: scripts used to test the code. The rule to issue them is make test[name of python script without extension] for any script in this subdirectory. These scripts use the 'test' python module in scripts/

  • utils/: utilities to post-process the data.

View on GitHub
GitHub Stars27
CategoryProduct
Updated1mo ago
Forks37

Languages

C

Security Score

95/100

Audited on Feb 25, 2026

No findings