You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
618 B
Markdown

Instalación OpenFOAM.com mediante NIX
-------------------------------------
1. Checkout del repo nix en GIT CSC para openfoam, get de las fuentes.
```bash
git checkout https://git.csc.gob.ar/gperez/openfoam-nix.git
cd openfoam-nix
wget https://develop.openfoam.com/Development/openfoam/-/archive/OpenFOAM-v2212/openfoam-OpenFOAM-v2212.tar.gz
tar xzf openfoam-OpenFOAM-v2212.tar.gz -C OpenFOAM
```
2. Pisar etc/bashrc con el nuestro editado
```
cp bashrc OpenFOAM/etc
```
3. Entrar a entorno de desarrollo de nix y compilar OpenFOAM
```bash
nix develop
cd OpenFOAM
source etc/bashrc
./Allwmake -q -j -s
```