Changeset 24014
- Timestamp:
- 06/12/19 15:10:30 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Element.cpp
r24013 r24014 2178 2178 int basinid,num_basins,M,N; 2179 2179 IssmDouble tf,gamma0,base,delta_t_basin,mean_tf_basin,absval; 2180 IssmDouble basalmeltrate[NUM_VERTICES];2180 IssmDouble* basalmeltrate = xNew<IssmDouble>(NUM_VERTICES); 2181 2181 bool islocal; 2182 2182 IssmDouble* delta_t = NULL; … … 2682 2682 IssmDouble g1 = area_boxi*gamma_T; 2683 2683 2684 IssmDouble basalmeltrates_shelf[NUM_VERTICES];2685 IssmDouble potential_pressure_melting_point[NUM_VERTICES];2686 IssmDouble Tocs[NUM_VERTICES];2687 IssmDouble Socs[NUM_VERTICES];2684 IssmDouble* basalmeltrates_shelf = xNew<IssmDouble>(NUM_VERTICES); 2685 IssmDouble* potential_pressure_melting_point = xNew<IssmDouble>(NUM_VERTICES); 2686 IssmDouble* Tocs = xNew<IssmDouble>(NUM_VERTICES); 2687 IssmDouble* Socs = xNew<IssmDouble>(NUM_VERTICES); 2688 2688 2689 2689 /* First box calculations */ … … 2694 2694 this->parameters->FindParam(&toc_farocean, basinid, time, BasalforcingsPicoFarOceantemperatureEnum); 2695 2695 this->parameters->FindParam(&soc_farocean, basinid, time, BasalforcingsPicoFarOceansalinityEnum); 2696 IssmDouble s1= soc_farocean/(nu*lambda);2697 IssmDouble overturnings[NUM_VERTICES];2696 IssmDouble s1 = soc_farocean/(nu*lambda); 2697 IssmDouble* overturnings = xNew<IssmDouble>(NUM_VERTICES); 2698 2698 2699 2699 /* Start looping on the number of verticies and calculate ocean vars */ … … 2793 2793 2794 2794 /*Define arrays*/ 2795 IssmDouble basalmeltrates_shelf[NUM_VERTICES];//Basal melt-rate2795 IssmDouble* basalmeltrates_shelf = xNew<IssmDouble>(NUM_VERTICES); //Basal melt-rate 2796 2796 2797 2797 /*Polynomial coefficients*/
Note:
See TracChangeset
for help on using the changeset viewer.