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

📄 make_cell_data.c

📁 超强的大尺度水文模拟工具
💻 C
字号:
#include <stdio.h>#include <stdlib.h>#include <vicNl.h> static char vcid[] = "$Id: make_cell_data.c,v 4.1 2000/05/16 21:07:16 vicadmin Exp $";cell_data_struct **make_cell_data(int veg_type_num, int Nlayer)/**********************************************************************	make_cell_data	Keith Cherkauer		July 9, 1997  This subroutine makes an array of type cell, which contains soil  column variables for a single grid cell.**********************************************************************/{  extern option_struct options;  int i;  cell_data_struct **temp;  temp = (cell_data_struct**) calloc(veg_type_num,                                   sizeof(cell_data_struct*));  for(i=0;i<veg_type_num;i++) {    temp[i] = (cell_data_struct*) calloc(options.SNOW_BAND, 					 sizeof(cell_data_struct));/*     for(j=0;j<options.SNOW_BAND;j++) { *//*       temp[i][j].layer  *//* 	= (layer_data_struct*)calloc(Nlayer, *//* 				     sizeof(layer_data_struct)); */      /*     } */  }  return temp;}

⌨️ 快捷键说明

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