Skip to content

Commit

Permalink
Merge pull request #3 from Khayoon/master
Browse files Browse the repository at this point in the history
Replace f95 with minGW in docs
  • Loading branch information
imronuke authored May 27, 2024
2 parents 98dd6b8 + 2ddd63d commit c1c59aa
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 g95 Fortran Compiler
You can also intsall KOMODO directly into Windows by using free fortran compiler g95 which can be obtained from [here](https://www.fortran.com/wp-content/uploads/2013/05/g95-Mingw_201210.exe). Then install g95 to your computer.
### 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 g95 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 g95:

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

These command will create an executable file named `komodo`. If you use Intel fortran compiler, just change `g95` 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 c1c59aa

Please sign in to comment.