⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ctest.csh

📁 SuperLU is a general purpose library for the direct solution of large, sparse, nonsymmetric systems
💻 CSH
字号:
#!/bin/cshset ofile = ctest.out			# output fileif ( -e $ofile ) then    rm -f $ofileendifecho "Single-precision complex testing output" > $ofileset MATRICES     = (LAPACK cg20.cua)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            ./ctest -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            ./ctest -t "SP" -s $s -l $l < ../EXAMPLE/$m >> $ofile        end    end  endifend

⌨️ 快捷键说明

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