CLAWRIM Wiki

The Computational Lab for Advanced Water Resources Informatics and Modeling

User Tools

Site Tools


howtos:how_to_compile_peakfq_on_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:how_to_compile_peakfq_on_linux [2024-09-24 08:40 am] hchohowtos:how_to_compile_peakfq_on_linux [2024-09-24 10:27 am] (current) hcho
Line 3: Line 3:
 First, [[How to install the Intel Fortran Compiler on Linux|install the Intel Fortran Compiler]]. First, [[How to install the Intel Fortran Compiler on Linux|install the Intel Fortran Compiler]].
  
-You can download the incomplete source code of PeakFQ from [[https://water.usgs.gov/software/PeakFQ/|its website]]. Here, I'll use [[https://water.usgs.gov/software/PeakFQ/code/7.5.1/PeakFQ_7.5.1.src.zip|PeakFQ_7.5.1.src.zip]].+You can download the incomplete source code of PeakFQ from [[https://water.usgs.gov/software/PeakFQ/|its website]]. Here, I'll use [[https://water.usgs.gov/software/PeakFQ/code/7.5.1/PeakFQ_7.5.1.src.zip|PeakFQ_7.5.1.src.zip]]. Visit [[https://github.com/HuidaeCho/peakfq-linux|its GitHub repository]].
  
 <file bash compile_peakfq.sh> <file bash compile_peakfq.sh>
Line 37: Line 37:
 sed -Ei "s/(, )(DENYNONE)/'\1SHARE='\2/" wdoppc90.for sed -Ei "s/(, )(DENYNONE)/'\1SHARE='\2/" wdoppc90.for
  
-# comment out non-existent modules and data type+# comment out non-existent modules and data types
 sed -Ei 's/^(.*(KERNEL32|T_OVERLAPPED))/!\1/' scenmod.f90 sed -Ei 's/^(.*(KERNEL32|T_OVERLAPPED))/!\1/' scenmod.f90
  
Line 46: Line 46:
 sed -i "/^ *WRITE(DISCLM(1)/a \        DISCLM(2) = ''\r" j407xe.for sed -i "/^ *WRITE(DISCLM(1)/a \        DISCLM(2) = ''\r" j407xe.for
  
-# reenable default gen skew computation +# reenable default generalized skew computation 
-sed -Ei 's/^C(.*GENSKU *=.*)/\1/; s/^Cprh( {6}AUX)/\1/; s/^( {6}AUX\(1\) = -999)/C\1/' j407xe.for+sed -Ei 's/^C(.*GENSKU *=.*)/\1/; s/^Cprh( {6}AUX)/\1/; s/^( {6}AUX\(1\) = -999)/!\1/' j407xe.for
  
 # download missing files # download missing files
howtos/how_to_compile_peakfq_on_linux.1727188816.txt.gz · Last modified: by hcho

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki