howtos:how_to_compile_peakfq_on_linux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| howtos:how_to_compile_peakfq_on_linux [2024-09-18 11:35 pm] – hcho | howtos: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:// | + | You can download the incomplete source code of PeakFQ from [[https:// |
| <file bash compile_peakfq.sh> | <file bash compile_peakfq.sh> | ||
| Line 22: | Line 22: | ||
| for i in *.*; do | for i in *.*; do | ||
| j=$(echo $i | tr A-Z a-z) | j=$(echo $i | tr A-Z a-z) | ||
| - | [ $i = $j ] && continue | + | [ $i = $j ] || mv $i $j |
| - | | + | |
| done | done | ||
| Line 29: | Line 28: | ||
| for i in *.*; do | for i in *.*; do | ||
| grep -q " | grep -q " | ||
| - | for j in $(grep " | + | for j in $(grep " |
| k=$(echo $j | tr A-Z a-z) | k=$(echo $j | tr A-Z a-z) | ||
| sed -i " | sed -i " | ||
| Line 38: | Line 37: | ||
| sed -Ei "s/(, )(DENYNONE)/' | sed -Ei "s/(, )(DENYNONE)/' | ||
| - | # comment out non-existent modules and data type | + | # comment out non-existent modules and data types |
| - | sed -Ei ' | + | sed -Ei ' |
| # comment out Windows functions | # comment out Windows functions | ||
| - | sed -Ei ' | + | sed -Ei ' |
| + | |||
| + | # fix disclaimer line | ||
| + | sed -i "/^ *WRITE(DISCLM(1)/ | ||
| + | |||
| + | # reenable default generalized skew computation | ||
| + | sed -Ei ' | ||
| # download missing files | # download missing files | ||
| Line 68: | Line 73: | ||
| ; do | ; do | ||
| wget https:// | wget https:// | ||
| + | done | ||
| + | |||
| + | # dos to unix | ||
| + | for i in * */*; do | ||
| + | sed -i ' | ||
| done | done | ||
| # create main.f90 | # create main.f90 | ||
| cat << ' | cat << ' | ||
| - | character(len=256) :: infile | + | character(len=256) :: specfile |
| if(command_argument_count().eq.0) then | if(command_argument_count().eq.0) then | ||
| - | write(*,*) " | + | write(*,*) " |
| else | else | ||
| - | call get_command_argument(1, | + | call get_command_argument(1, |
| - | call peakfq(infile) | + | call peakfq(specfile) |
| endif | endif | ||
| end | end | ||
| Line 156: | Line 166: | ||
| # build | # build | ||
| make | make | ||
| + | |||
| + | # install PeakFQ for Windows; find and copy pkfqms.wdm in lowercase | ||
| + | # download it from this website | ||
| + | wget https:// | ||
| + | unzip pkfqms.zip | ||
| + | rm pkfqms.zip | ||
| </ | </ | ||
| Line 163: | Line 179: | ||
| for i in $(make &> /dev/stdout | grep " | for i in $(make &> /dev/stdout | grep " | ||
| if ! grep -qiE " | if ! grep -qiE " | ||
| - | echo "NOT FOUND $i" | + | echo "$i: NOT FOUND" |
| fi | fi | ||
| done | done | ||
| </ | </ | ||
howtos/how_to_compile_peakfq_on_linux.1726724106.txt.gz · Last modified: by hcho
