瀏覽代碼

balance -> budged

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40299 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 15 年之前
父節點
當前提交
c60b9d0cec
共有 2 個文件被更改,包括 8 次插入8 次删除
  1. 7 7
      lib/gpde/N_gwflow.c
  2. 1 1
      lib/gpde/N_gwflow.h

+ 7 - 7
lib/gpde/N_gwflow.c

@@ -538,25 +538,25 @@ N_data_star *N_callback_gwflow_2d(void *gwdata, N_geom_data * geom, int col,
 
 
 /* *************************************************************** */
-/* ****************** N_gwflow_2d_calc_water_balance************** */
+/* ****************** N_gwflow_2d_calc_water_budged ************** */
 /* *************************************************************** */
 /*!
- * \brief This function computes the water balance of the entire groundwater
+ * \brief This function computes the water budged of the entire groundwater
  *
- * The water balance is calculated for each active and dirichlet cell from
+ * The water budged is calculated for each active and dirichlet cell from
  * its surrounding neighbours. This is based on the 5 star mass balance computation
  * of N_callback_gwflow_2d and the gradient of the water heights in the cells.
- * The sum of the water balance of each active/dirichlet cell must be near zero
+ * The sum of the water budged of each active/dirichlet cell must be near zero
  * due the effect of numerical inaccuracy of cpu's.
  *
  * \param gwdata N_gwflow_data2d *
  * \param geom N_geom_data *
- * \param balance N_array_2d
+ * \param budged N_array_2d
  * \returnvoid
  *
  * */
 void
-N_gwflow_2d_calc_water_balance(N_gwflow_data2d * data, N_geom_data * geom, N_array_2d * balance)
+N_gwflow_2d_calc_water_budgede(N_gwflow_data2d * data, N_geom_data * geom, N_array_2d * budged)
 {
     int y, x, stat;
     double h, hc;
@@ -607,7 +607,7 @@ N_gwflow_2d_calc_water_balance(N_gwflow_data2d * data, N_geom_data * geom, N_arr
 	    else {
 		Rast_set_null_value(&val, 1, DCELL_TYPE);
 	    }
-	    N_put_array_2d_d_value(balance, x, y, val);
+	    N_put_array_2d_d_value(budged, x, y, val);
 	}
     }
 

+ 1 - 1
lib/gpde/N_gwflow.h

@@ -100,7 +100,7 @@ extern N_data_star *N_callback_gwflow_3d(void *gwdata, N_geom_data * geom,
 					 int col, int row, int depth);
 extern N_data_star *N_callback_gwflow_2d(void *gwdata, N_geom_data * geom,
 					 int col, int row);
-extern void N_gwflow_2d_calc_water_balance(N_gwflow_data2d * data,
+extern void N_gwflow_2d_calc_water_budged(N_gwflow_data2d * data,
         N_geom_data * geom, N_array_2d * balance);
 extern N_gwflow_data3d *N_alloc_gwflow_data3d(int cols, int rows, int depths,
 					      int river, int drain);