亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? build-namelist

?? CCSM Research Tools: Community Atmosphere Model (CAM)
??
?? 第 1 頁 / 共 2 頁
字號:
#!/usr/bin/env perl#=======================================================================##  This is a script to build a namelist.## Usage:## perl build-namelist.pl [options]## For help on options do:## perl build-namelist.pl -help##=======================================================================use strict;#use warnings;#use diagnostics;use Cwd;use Getopt::Long;use English;#-----------------------------------------------------------------------------------------------my $ProgName;($ProgName = $PROGRAM_NAME) =~ s!(.*)/!!; # name of programmy $ProgDir = $1;                         # name of directory where program livesmy $cfg_cache = "config_cache.xml";       # Default name of configuration cache filemy $nlfilename = "namelist";              # Default name of output namelist filesub usage {    die <<EOF;SYNOPSIS     $ProgName [options]OPTIONS     -cam_cfg "dir"        Directory containing CAM configuration scripts.     -case "name"          Case identifier up to 32 characters     -config "file"        Read the given config cache file to get the configuration                           of the CAM executable.  Default: $cfg_cache.     -csmdata "dir"        Head directory location of CCSM input data.                           Can also be set by using the CSMDATA environment variable.     -h                    Print usage to STDOUT.     -i                    Turns on interactive prompting to modify a namelist.     -infile "file"        Specify a namelist file to read values from.     -namelist "namelist"  Specify namelist settings using FORTRAN namelist syntax, e.g.,                              -namelist "&camexp nelapse=-10, trace_gas=.true. /"     -o "file"             Filename of output namelist.  Default: $nlfilename     -runtype "type"       Type of simulation (initial, restart, or branch)     -s                    Turns on silent mode - only fatal messages issued.     -test                 Enable checking that initial and boundary datasets exist on local filesystem.     -v n                  Set verbosity to level n.  1 (default), 2 or 3.Note: The precedence for setting the values of namelist variables is:      1. interactive prompting,      2. specific namelist options set on the command-line (-case and -runtype),      3. values set using the -namelist option,      4. values read from the file specified by -infile,      5. hard-coded values from defaults files in the CAM configuration         script directory.EOF}#-----------------------------------------------------------------------------------------------my $cwd = getcwd();  # current working directory# Parse command-line options.my %opts = ( config       => $cfg_cache,	     help         => 0,	     interactive  => 0,	     out          => $nlfilename,	     silent       => 0,	     test         => 0,	    );GetOptions(    "cam_cfg=s"                 => \$opts{'cam_cfg'},    "case=s"                    => \$opts{'case'},    "config=s"                  => \$opts{'config'},    "csmdata=s"                 => \$opts{'csmdata'},    "h|help"                    => \$opts{'help'},    "i|interactive"             => \$opts{'interactive'},    "infile=s"                  => \$opts{'infile'},    "namelist=s"                => \$opts{'namelist'},    "o|out=s"                   => \$opts{'out'},    "runtype=s"                 => \$opts{'runtype'},    "s|silent"                  => \$opts{'silent'},    "test"                      => \$opts{'test'},    "v|verbose=s"               => \$opts{'verbose'},)  or usage();# Give usage message.usage() if $opts{'help'};# Check for unparsed argumentsif (@ARGV) {    print "ERROR: unrecognized arguments: @ARGV\n";    usage();}# Define print levels:# 0 - only issue fatal error messages# 1 - only informs what files are created (default)# 2 - echo verbosely$opts{'printlev'} = 1;if ($opts{'silent'}) { $opts{'printlev'} = 0; }if ($opts{'verbose'}>=2) { $opts{'printlev'} = $opts{'verbose'}; }# End of linemy $eol = "\n";if ($opts{'interactive'}) { $eol = "\n\n"; }#-----------------------------------------------------------------------------------------------# Make sure we can find required perl modules and configuration files.my $cfgdir;                         # directory containing CAM configuration scriptsif (defined $opts{'cam_cfg'}) {    $cfgdir = $opts{'cam_cfg'};} elsif (defined $ENV{CAM_CFGDIR}) {    $cfgdir = "$ENV{CAM_CFGDIR}";} elsif (defined $ENV{CAM_ROOT}) {    $cfgdir = "$ENV{CAM_ROOT}/models/atm/cam/bld";} else {    if ($ProgDir) { $cfgdir = $ProgDir; }    else { $cfgdir = $cwd; }}my $die_message ="** This file is supplied with the CAM source distribution in the\n"          ."** directory containing the CAM configuration scripts.  This directory can\n" ."** be specified as follows (highest to lowest precedence):\n"                 ."** - by the command-line option -cam_cfg\n"                                   ."** - by the environment variable CAM_CFGDIR\n"                                ."** - by the environment variable CAM_ROOT (the configuration\n"               ."**   script directory is CAM_ROOT/models/atm/cam/bld)\n"                      ."** The default value is the directory the contains the $ProgName script. \n";(-f "$cfgdir/CAM_namelist.pm")  or  die <<"EOF";** Cannot find perl module \"CAM_namelist.pm\" in directory \"$cfgdir\" **$die_messageEOF(-f "$cfgdir/XML/Lite.pm")  or  die <<"EOF";** Cannot find perl module \"XML/Lite.pm\" in directory \"$cfgdir\" **$die_messageEOF$cfgdir = absolute_path($cfgdir);if ($opts{'printlev'}>2) {  print "Setting CAM configuration script directory to $cfgdir$eol";}#-----------------------------------------------------------------------------------------------# Add $cfgdir to the list of paths that Perl searches for modulesunshift @INC, $cfgdir;require XML::Lite;require CAM_namelist;#-----------------------------------------------------------------------------------------------# Validate specified option values.validate_options("command line", \%opts);# Command-line option processing:if ($opts{'runtype'} eq 'initial') { $opts{'nsrest'} = 0; }elsif ($opts{'runtype'} eq 'restart') { $opts{'nsrest'} = 1; }elsif ($opts{'runtype'} eq 'branch') { $opts{'nsrest'} = 3; }my $nl = CAM_namelist->new( \%opts );$nl->set_namelists;    # Define the namelist / read in config cache file$nl->build;            # Build the model namelist#-----------------------------------------------------------------------------------------------#-----------------------------------------------------------------------------------------------sub absolute_path {## Convert a pathname into an absolute pathname, expanding any . or .. characters.# Assumes pathnames refer to a local filesystem.# Assumes the directory separator is "/".#  my $path = shift;  my $cwd = getcwd();  # current working directory  my $abspath;         # resulting absolute pathname# Strip off any leading or trailing whitespace.  (This pattern won't match if# there's embedded whitespace.  $path =~ s!^\s*(\S*)\s*$!$1!;# Convert relative to absolute path.  if ($path =~ m!^\.$!) {          # path is "."      return $cwd;  } elsif ($path =~ m!^\./!) {     # path starts with "./"      $path =~ s!^\.!$cwd!;  } elsif ($path =~ m!^\.\.$!) {   # path is ".."      $path = "$cwd/..";  } elsif ($path =~ m!^\.\./!) {   # path starts with "../"      $path = "$cwd/$path";  } elsif ($path =~ m!^[^/]!) {    # path starts with non-slash character      $path = "$cwd/$path";  }  my ($dir, @dirs2);  my @dirs = split "/", $path, -1;   # The -1 prevents split from stripping trailing nulls                                     # This enables correct processing of the input "/".  # Remove any "" that are not leading.  for (my $i=0; $i<=$#dirs; ++$i) {      if ($i == 0 or $dirs[$i] ne "") {	  push @dirs2, $dirs[$i];      }  }  @dirs = ();  # Remove any "."  foreach $dir (@dirs2) {      unless ($dir eq ".") {	  push @dirs, $dir;      }  }  @dirs2 = ();  # Remove the "subdir/.." parts.  foreach $dir (@dirs) {    if ( $dir !~ /\.\./ ) {        push @dirs2, $dir;    } else {        pop @dirs2;   # remove previous dir when current dir is ..    }  }  if ($#dirs2 == 0 and $dirs2[0] eq "") { return "/"; }  $abspath = join '/', @dirs2;  return( $abspath );}#-------------------------------------------------------------------------------sub valid_option {    my ($val, @expect) = @_;    my ($expect);    $val =~ s/^\s+//;    $val =~ s/\s+$//;    foreach $expect (@expect) {	if ($val =~ /^$expect$/i) { return $expect; }    }    return undef;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本视频中文字幕一区二区三区| 成人在线一区二区三区| 精品在线观看视频| www.欧美精品一二区| 欧美人体做爰大胆视频| 亚洲精品视频在线看| 国产一区激情在线| 免费成人你懂的| 色婷婷亚洲一区二区三区| 欧美精品一区在线观看| 婷婷综合五月天| 国产一区二区三区免费播放| 欧美性猛片xxxx免费看久爱| 自拍偷拍国产精品| 国产乱码精品1区2区3区| 欧美精品视频www在线观看| 国产精品欧美一区喷水| 国产一区二区免费在线| 日韩免费高清av| 日韩激情视频在线观看| 欧美自拍偷拍午夜视频| 中文字幕日韩一区二区| 国产精品99久久久久久久女警| 这里只有精品免费| 亚洲成人一区在线| 欧美综合视频在线观看| 一区二区三区四区不卡视频| 91农村精品一区二区在线| 国产精品你懂的| 国产.精品.日韩.另类.中文.在线.播放| 欧美一区二区三区思思人| 午夜欧美一区二区三区在线播放| 欧美吞精做爰啪啪高潮| 亚洲精品第一国产综合野| 91.com在线观看| 久久欧美一区二区| 亚洲va天堂va国产va久| 欧美午夜精品久久久久久超碰| 亚洲天堂av老司机| 色综合av在线| 亚洲成av人影院| 欧美一区二区啪啪| 蜜桃视频免费观看一区| 久久综合九色综合欧美亚洲| 国产激情精品久久久第一区二区| 国产调教视频一区| 一本色道a无线码一区v| 亚洲午夜激情网站| 日韩精品一区二区三区视频播放| 精品在线播放免费| 国产精品乱码人人做人人爱| 一本大道久久精品懂色aⅴ| 亚洲精品国产一区二区精华液| 欧美日韩亚洲丝袜制服| 久久精品久久综合| 中文欧美字幕免费| 91免费国产在线观看| 亚洲一区在线观看免费| 欧美日韩精品一区视频| 黑人巨大精品欧美一区| 中文字幕一区二区视频| 欧美三级午夜理伦三级中视频| 免费高清成人在线| 国产精品伦一区| 欧美精品久久99| 成人亚洲一区二区一| 亚洲小说欧美激情另类| 久久亚洲二区三区| 一本久道久久综合中文字幕| 奇米色777欧美一区二区| 国产精品午夜在线| 欧美肥妇free| jizz一区二区| 美国三级日本三级久久99| 国产精品不卡一区二区三区| 欧美日韩夫妻久久| 成人精品gif动图一区| 日本成人在线网站| **性色生活片久久毛片| 日韩欧美一区二区视频| 91同城在线观看| 激情都市一区二区| 亚洲午夜精品在线| 中文字幕在线不卡国产视频| 欧美大片免费久久精品三p| 91丨porny丨国产入口| 国内精品久久久久影院薰衣草 | 自拍偷拍国产精品| 欧美xxxxxxxx| 欧美三片在线视频观看| 91麻豆福利精品推荐| 国产精品一品二品| 日韩电影在线观看网站| 亚洲自拍偷拍综合| 亚洲天堂网中文字| 欧美高清在线一区| 国产亚洲精品超碰| 日韩免费看网站| 制服丝袜亚洲色图| 欧美日韩免费观看一区二区三区| 成人毛片老司机大片| 国产一区二区三区免费在线观看| 日韩在线a电影| 五月综合激情网| 亚洲国产欧美日韩另类综合| 中文字幕在线观看不卡| 日韩精品一区二区三区中文不卡| 欧美猛男男办公室激情| 99国产精品视频免费观看| 国产乱色国产精品免费视频| 美女视频网站久久| 美腿丝袜亚洲色图| 日本在线不卡视频| 日本欧美在线看| 日韩高清电影一区| 日韩电影在线免费观看| 亚洲综合一区在线| 夜夜爽夜夜爽精品视频| 亚洲激情图片一区| 亚洲精品精品亚洲| 亚洲成av人片在线| 日本美女一区二区| 奇米精品一区二区三区在线观看一 | 色狠狠一区二区| 日本一区二区视频在线| 欧美videofree性高清杂交| 欧美日韩二区三区| 日韩片之四级片| 久久久久99精品一区| 国产精品美女久久久久久久| 中文字幕在线观看一区| 亚洲资源在线观看| 水蜜桃久久夜色精品一区的特点| 天堂蜜桃一区二区三区 | 亚洲风情在线资源站| 日韩国产欧美三级| 久久99精品国产麻豆不卡| 国产一区二区视频在线| 成人在线综合网站| 精品视频免费在线| www欧美成人18+| 亚洲人精品一区| 日本不卡的三区四区五区| 国产成人精品综合在线观看| 97精品久久久午夜一区二区三区| 欧美体内she精视频| 精品免费一区二区三区| 中文字幕av不卡| 五月婷婷久久综合| 国产成人在线电影| 91福利在线看| 久久亚区不卡日本| 亚洲麻豆国产自偷在线| 日韩高清一区在线| 99久久免费精品| 欧美一区永久视频免费观看| 久久久亚洲国产美女国产盗摄 | 91福利在线看| 26uuu国产在线精品一区二区| 国产精品国产三级国产aⅴ无密码| 亚洲制服欧美中文字幕中文字幕| 极品尤物av久久免费看| 91在线观看污| 久久久激情视频| 午夜欧美电影在线观看| 不卡一二三区首页| 精品国产一区二区三区不卡| 国产精品久久久久婷婷二区次| 日韩成人一区二区| 91丝袜美腿高跟国产极品老师 | 欧美年轻男男videosbes| 国产欧美日韩在线看| 日韩成人免费电影| 91亚洲精品乱码久久久久久蜜桃| 精品国一区二区三区| 亚洲成av人片在www色猫咪| www.亚洲激情.com| 国产视频一区在线观看| 日韩高清在线观看| 欧美视频在线观看一区二区| 中文av一区二区| 国产精品69久久久久水密桃| 欧美日韩成人在线一区| 一区二区在线观看不卡| 成人免费观看视频| 久久免费精品国产久精品久久久久| 亚州成人在线电影| 欧美日韩国产高清一区| 亚洲美女视频一区| 99精品视频一区二区三区| 日本一区二区三区在线不卡| 国内偷窥港台综合视频在线播放| 5566中文字幕一区二区电影| 亚洲精品国产高清久久伦理二区| 成人午夜视频免费看| 国产午夜精品福利| 国产成人精品一区二区三区四区 | 亚洲欧洲精品成人久久奇米网| 国产乱码精品一品二品| 久久精品无码一区二区三区 |