forked from NREL/ROSCO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Bartdoekemeijer/master
Compilation code for DISCON.so under linux
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |