href.csh

来自「Spectral Element Method for wave propaga」· CSH 代码 · 共 36 行

CSH
36
字号
#!/bin/cshset Path = $0:h/set Suffix = ".emc2_bd"echo '\n'echo '  HREF   : H-REFINEMENT OF AN EMC2 MESH'echo '  WARNING: all file names will be automatically given'echo '           the .emc2_bd suffix'echo ' 'echo -n '  Enter the original file name : 'set file1 = $<set file1 = ${file1}$Suffixif !( -e $file1 ) then  echo '  FATAL ERROR: file does not exist'  echo '  HREF: abort'  echo '\n'  exitendifecho -n '  Enter the new mesh file name : 'set file2 = $<set file2 = ${file2}$Suffixecho -n '  Refinement ratio (integer>1) : 'set ratio = $<awk -f ${Path}href.awk ratio=$ratio $file1 > $file2echo ' 'echo '  You can restore now the new mesh in EMC2'echo '  (in PREP_MESH mode) and save it in FTQ format'echo '  HREF: end'echo '\n'

⌨️ 快捷键说明

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