stest.csh

来自「SuperLU is a general purpose library for」· CSH 代码 · 共 51 行

CSH
51
字号
#!/bin/cshset ofile = stest.out			# output fileif ( -e $ofile ) then    rm -f $ofileendifecho "Single-precision testing output" > $ofileset MATRICES     = (LAPACK g10)set NVAL         = (9 19)set NRHS         = (5)set LWORK        = (0 10000000)## Loop through all matrices ...#foreach m ($MATRICES)  #--------------------------------------------  # Test matrix types generated in LAPACK-style  #--------------------------------------------  if  ($m == 'LAPACK') then      echo '== LAPACK test matrices' >> $ofile      foreach n ($NVAL)        foreach s ($NRHS)          foreach l ($LWORK)	    echo '' >> $ofile            echo 'n='$n 'nrhs='$s 'lwork='$l >> $ofile            ./stest -t "LA" -l $l -n $n -s $s >> $ofile          end        end      end  #--------------------------------------------  # Test a specified sparse matrix  #--------------------------------------------  else    echo '' >> $ofile    echo '== sparse matrix:' $m >> $ofile    foreach s ($NRHS)        foreach l ($LWORK)	    echo '' >> $ofile            echo 'nrhs='$s 'lwork='$l >> $ofile            ./stest -t "SP" -s $s -l $l < ../EXAMPLE/$m >> $ofile        end    end  endifend

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?