可执行文件加入Linux默认路径的办法:
如果需要临时的成为系统默认路径可以这样:
export PATH=/home/VIC/vic/drivers/classic:$PATH
此处假设要加入的路径是usr/local/arm/bin,记住,可执行文件是位于bin下面,比如可执行文件是a.o路径不能是:usr/local/arm/bin/a.o,路径指向可执行文件的所在 文件夹。
这样添加是暂时的,在关闭终端后就失去作用。
另外一种长期的方法是:
把路径加到/etc/profile或者~/.bash_profile,添加完之后需要注销一下,或者转换一下用户也可以啦。
就是在PATH加上命令的搜索路径就可以了;
参数文件夹:
#######################################################################
# Land Surface Files and Parameters
#######################################################################
SOIL /vic/vic.sample.stehekin-old/stehekin/params/vic/soil_param.STEHE # Soil parameter path/file
ARC_SOIL FALSE # TRUE = read soil parameters from ARC/INFO ASCII grids
#SOIL_DIR (soil param directory) # Directory containing ARC/INFO ASCII grids of soil parameters - only valid if ARC_SOIL is TRUE
BASEFLOW ARNO # ARNO = columns 5-8 are the standard VIC baseflow parameters; NIJSSEN2001 = columns 5-8 of soil file are baseflow parameters from Nijssen et al (2001)
JULY_TAVG_SUPPLIED FALSE # TRUE = final column of the soil parameter file will contain average July air temperature, for computing treeline; this will be ignored if COMPUTE_TREELINE is FALSE; FALSE = compute the treeline based on the average July air temperature of the forcings over the simulation period
ORGANIC_FRACT FALSE # TRUE = simulate organic soils; soil param file contains 3*Nlayer extra columns, listing for each layer the organic fraction, and the bulk density and soil particle density of the organic matter in the soil layer; FALSE = soil param file does not contain any information about organic soil, and organic fraction should be assumed to be 0
VEGLIB /vic/vic.sample.stehekin-old/stehekin/params/vic/veglib.LDAS # Veg library path/file
VEGPARAM /vic/vic.sample.stehekin-old/stehekin/params/vic/veg_param.STEHE # Veg parameter path/file
ROOT_ZONES 3 # Number of root zones (must match format of veg param file)
VEGPARAM_LAI TRUE # TRUE = veg param file contains LAI information; FALSE = veg param file does NOT contain LAI information
LAI_SRC LAI_FROM_VEGLIB # LAI_FROM_VEGPARAM = read LAI from veg param file; LAI_FROM_VEGLIB = read LAI from veg library file
SNOW_BAND 5 /vic/vic.sample.stehekin-old/stehekin/params/vic/snowbands.STEHE # Number of snow bands; if number of snow bands > 1, you must insert the snow band path/file after the number of bands (e.g. SNOW_BAND 5 my_path/my_snow_band_file)
在此处可以看出设置不设置动态植被!!!
一定注意各个文件引用路径是否对!,因为在linux里路径会发生更改。
[root@VM_0_15_centos src]# gcc *c -lm -o classic -I/vic/vic/