Skip to content

Commit

Permalink
Replace g95 by min-GW
Browse files Browse the repository at this point in the history
  • Loading branch information
imronuke authored May 27, 2024
1 parent db1e4db commit 2ddd63d
Showing 1 changed file with 14 additions and 32 deletions.
46 changes: 14 additions & 32 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,42 +86,24 @@ There are at least two ways installing KOMODO on Windows.
### Using Windows Subsystem for Linux (WSL) in Windows 10
Using this way, you can go to Microsoft Store and install Ubuntu from there for free. Open the Ubuntu app and follow the same steps on installing KOMODO on Ubuntu OS.

### Using min-GW Fortran Compiler
You can also install KOMODO directly into Windows by using free fortran compiler min-GW which can be obtained from [here](https://github.com/skeeto/w64devkit/releases) direct link to [64-bit version](https://github.com/skeeto/w64devkit/releases/download/v1.23.0/w64devkit-fortran-1.23.0.zip) and the [32-bit version](https://github.com/skeeto/w64devkit/releases/download/v1.23.0/w64devkit-i686-fortran-1.23.0.zip)
### Using min-GW
If you want install quickly on Windows, you can consider using min-GW.

Now you can download the [KOMODO zip files](https://github.com/imronuke/KOMODO/archive/master.zip) from Github then extract that zip file.
Here is step by step:
1. Download the [KOMODO zip files](https://github.com/imronuke/KOMODO/archive/master.zip) from Github then extract that zip file.
2. Download min-GW from [here](https://github.com/skeeto/w64devkit/releases). Direct link to [64-bit version](https://github.com/skeeto/w64devkit/releases/download/v1.23.0/w64devkit-fortran-1.23.0.zip) and the [32-bit version](https://github.com/skeeto/w64devkit/releases/download/v1.23.0/w64devkit-i686-fortran-1.23.0.zip). Then also unzip min-GW.
3. Run ```w64devkit.exe``` inside min-GW folder, a command prompt will be popped out.
4. In the command prompt, go to the downloaded KOMODO folder. Use ```cd d:``` command to navigate to the D drive.
5. Inside the KOMODO folder, run the following command

After you installed min-GW and extracted KOMODO zip file, open the command prompt. And from the command prompt, using `cd` command, go to the KOMODO folder which you had been extracted
```
./install.sh
```
6. An executable ```komodo.exe``` should be generated.
7. Run a test

```
cd KOMODO-master
```

and build the source codes using min-GW:

```
gfortran -O4 -c src\mod_data.f90
gfortran -O4 -c src\mod_io.f90
gfortran -O4 -c src\mod_xsec.f90
gfortran -O4 -c src\mod_nodal.f90
gfortran -O4 -c src\mod_cmfd.f90
gfortran -O4 -c src\mod_th.f90
gfortran -O4 -c src\mod_trans.f90
gfortran -O4 -c src\mod_control.f90
gfortran -O4 -c src\komodo.f90
gfortran *.o -o komodo
```

These command will create an executable file named `komodo`. If you use Intel fortran compiler, just change `gfortran` with `ifort` in the commands above. Now, you can run a test using several examples of inputs file in folder [smpl](https://github.com/imronuke/KOMODO/tree/master/smpl) to see if you had built KOMODO properly. You can run KOMODO using command

```
komodo [INPUT_FILE_PATH_NAME]
```

for example, you can run [`IAEA3Ds`](https://github.com/imronuke/KOMODO/blob/master/smpl/static/IAEA3Ds) input by

```
komodo smpl\static\IAEA3Ds
./komodo.exe smpl\static\IAEA3Ds
```

If you see `KOMODO EXIT NORMALLY` at the end of terminal output, then congratulations! you have successfully installed KOMODO on Windows.

0 comments on commit 2ddd63d

Please sign in to comment.