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

📄 mk-sik-inc.sh

📁 gcc-fortran,linux使用fortran的编译软件。很好用的。
💻 SH
字号:
#!/bin/shcompile="$1"kinds=""possible_kinds="1 2 4 8 16"c=0for k in $possible_kinds; do  echo "  integer (kind=$k) :: x" > tmp$$.f90  echo "  end" >> tmp$$.f90  if $compile -c tmp$$.f90 > /dev/null 2>&1; then    kinds="$kinds $k"    c=`expr $c + 1`  fi  rm -f tmp$$.*doneecho "  integer, parameter :: c = $c"echo "  type (int_info), parameter :: int_infos(c) = (/ &"i=0for k in $kinds; do  # echo -n is not portable  str="    int_info ($k, range(0_$k))"  i=`expr $i + 1`  if [ $i -lt $c ]; then    echo "$str, &"  else    echo "$str /)"  fidoneexit 0

⌨️ 快捷键说明

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