Skip to content

Commit

Permalink
Merge pull request #1 from Bartdoekemeijer/master
Browse files Browse the repository at this point in the history
Compilation code for DISCON.so under linux
  • Loading branch information
sebastiaanmuld authored Oct 12, 2017
2 parents 8553e77 + 43ce979 commit 26f4bd2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Scripts/compileDISCON.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 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

0 comments on commit 26f4bd2

Please sign in to comment.