diff --git a/Scripts/compileDISCON.bash b/Scripts/compileDISCON.bash deleted file mode 100755 index 926ef89f..00000000 --- a/Scripts/compileDISCON.bash +++ /dev/null @@ -1,21 +0,0 @@ -# Cd to correct directory -cd ../Source -# Remove old files -rm -rf *.o *.mod *.a - -# Compile individual codes -gcc -c --free-form -ffree-line-length-0 -fPIC -Wall FunctionToolbox.f90 -gcc -c --free-form -ffree-line-length-0 -fPIC -Wall Filters.f90 -gcc -c --free-form -ffree-line-length-0 -fPIC -Wall IPC.f90 - -# COMPILE DISCON -#gcc -c --free-form -ffree-line-length-0 DISCON.f90 -rm -f ../DISCON/DISCON.so -#gcc -shared -ffree-line-length-0 -Wall -o ../DISCON/DISCON.so -fPIC DISCON.f90 FunctionToolbox.f90 Filters.f90 IPC.f90 -gcc -shared -ffree-line-length-0 -o ../DISCON/DISCON.so -fPIC DISCON.f90 FunctionToolbox.f90 Filters.f90 IPC.f90 -rm -rf *.o *.mod - -echo 'The output file is: "../DISCON/DISCON.so".' - -# Return to initial directory -cd ../Scripts \ No newline at end of file diff --git a/Scripts/compileDISCON_linux.bash b/Scripts/compileDISCON_linux.bash new file mode 100644 index 00000000..245ff0a9 --- /dev/null +++ b/Scripts/compileDISCON_linux.bash @@ -0,0 +1,15 @@ +# Cd to correct directory +cd ../Source + +# Set options to 64 bits +sed -i '13s/.*/#BITS = 32/' makefile +sed -i '14s/.*/BITS = 64/' makefile + +# Build code +rm -f ../DISCON/DISCON_glin64.so +make clean +make all +echo 'The output file is: "../DISCON/DISCON_glin64.so".' + +# Return to initial directory +cd ../Scripts \ No newline at end of file