Skip to content

Commit

Permalink
fopenmp in toolbox compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankindermann committed Apr 7, 2021
1 parent aa35921 commit bd053dc
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions installation/docker/docker_base/install_fortran.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ apt --yes install gnuplot
## INSTALL THE TOOLBOX

# compile the toolbox
gfortran -c -Werror -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -ffree-line-length-none ./toolbox.f90 -o toolbox.o
gfortran -c -Werror -fopenmp -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -fopenmp -ffree-line-length-none ./toolbox.f90 -o toolbox.o

# copy the toolbox to the working directory
mkdir -p /usr/local/include
Expand Down
4 changes: 2 additions & 2 deletions installation/docker/docker_vnc/install_fortran.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ mv ./geany.conf /root/.config/geany/geany.conf
## INSTALL THE TOOLBOX

# compile the toolbox
gfortran -c -Werror -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -ffree-line-length-none ./toolbox.f90 -o toolbox.o
gfortran -c -Werror -fopenmp -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -fopenmp -ffree-line-length-none ./toolbox.f90 -o toolbox.o

# copy the toolbox to the working directory
mkdir -p /usr/local/include
Expand Down
4 changes: 2 additions & 2 deletions installation/mac/install_fortran.command
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ sudo mv ./geany.conf ~/.config/geany/geany.conf
## INSTALL THE TOOLBOX

# compile the toolbox
gfortran -c -Werror -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./../toolbox/toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -ffree-line-length-none ./../toolbox/toolbox.f90 -o toolbox.o
gfortran -c -Werror -fopenmp -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./../toolbox/toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -fopenmp -ffree-line-length-none ./../toolbox/toolbox.f90 -o toolbox.o

# copy the toolbox to the working directory
sudo mkdir -p /usr/local/include
Expand Down
4 changes: 2 additions & 2 deletions installation/mac/update_toolbox.command
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ fi
## INSTALL THE TOOLBOX

# compile the toolbox
gfortran -c -Werror -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./../toolbox/toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -ffree-line-length-none ./../toolbox/toolbox.f90 -o toolbox.o
gfortran -c -Werror -fopenmp -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./../toolbox/toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -fopenmp -ffree-line-length-none ./../toolbox/toolbox.f90 -o toolbox.o

# copy the toolbox to the working directory
sudo mkdir -p /usr/local/include
Expand Down
4 changes: 2 additions & 2 deletions installation/ubuntu/install_fortran.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ sudo chown $USER:$USER -c ~/Desktop/geany.desktop
## INSTALL THE TOOLBOX

# compile the toolbox
gfortran -c -Werror -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./../toolbox/toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -ffree-line-length-none ./../toolbox/toolbox.f90 -o toolbox.o
gfortran -c -Werror -fopenmp -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./../toolbox/toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -fopenmp -ffree-line-length-none ./../toolbox/toolbox.f90 -o toolbox.o

# copy the toolbox to the working directory
sudo sudo mkdir -p /usr/local/include
Expand Down
4 changes: 2 additions & 2 deletions installation/ubuntu/update_toolbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ fi
## INSTALL THE TOOLBOX

# compile the toolbox
gfortran -c -Werror -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./../toolbox/toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -ffree-line-length-none ./../toolbox/toolbox.f90 -o toolbox.o
gfortran -c -Werror -fopenmp -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./../toolbox/toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -fopenmp -ffree-line-length-none ./../toolbox/toolbox.f90 -o toolbox.o

# copy the toolbox to the working directory
sudo mkdir -p /usr/local/include
Expand Down
4 changes: 2 additions & 2 deletions installation/windows/install_fortran.bat
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ move geany.conf "%userprofile%\AppData\Roaming\geany\geany.conf"

:: INSTALL THE TOOLBOX

gfortran -c -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./../../toolbox/toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -ffree-line-length-none ./../../toolbox/toolbox.f90 -o toolbox.o
gfortran -c -Werror -fopenmp -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./../../toolbox/toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -fopenmp -ffree-line-length-none ./../../toolbox/toolbox.f90 -o toolbox.o
mkdir "%location%\include\" 2>nul
del /Q "%location%\include\toolbox.mod" 2>nul
del /Q "%location%\include\toolbox.o" 2>nul
Expand Down
4 changes: 2 additions & 2 deletions installation/windows/update_toolbox.bat
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ if %exitres%==T exit


:: INSTALL THE TOOLBOX
gfortran -c -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./../toolbox/toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -ffree-line-length-none ./../toolbox/toolbox.f90 -o toolbox.o
gfortran -c -Werror -fopenmp -Wno-unused -ffree-line-length-none -fimplicit-none -Wall -fcheck=bound,do -ffpe-trap=invalid,zero,overflow -frecursive -g ./../toolbox/toolbox.f90 -o toolbox_debug.o
gfortran -c -O3 -fopenmp -ffree-line-length-none ./../toolbox/toolbox.f90 -o toolbox.o
mkdir "%location%\include\" 2>nul
del /Q "%location%\include\toolbox.mod" 2>nul
del /Q "%location%\include\toolbox.o" 2>nul
Expand Down

0 comments on commit bd053dc

Please sign in to comment.