Changeset 24507
- Timestamp:
- 01/10/20 16:46:20 (5 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Element.cpp
r24504 r24507 3665 3665 Input2 *teValue_input = this->GetInput2(SmbTeValueEnum); _assert_(teValue_input); 3666 3666 Input2 *aValue_input = this->GetInput2(SmbAValueEnum); _assert_(aValue_input); 3667 Input2 *EC_input = this->GetInput2(SmbECiniEnum); _assert_(EC_input);3667 Input2 *EC_input = NULL; 3668 3668 3669 3669 /*Retrieve input values:*/ … … 3700 3700 this->inputs2->GetArray(SmbAiniEnum,this->lid,&aini,&m); 3701 3701 this->inputs2->GetArray(SmbTiniEnum,this->lid,&Tini,&m); 3702 EC_input = this->GetInput2(SmbECiniEnum); _assert_(EC_input); 3702 3703 EC_input->GetInputAverage(&EC); 3703 3704 … … 3755 3756 this->inputs2->GetArray(SmbAEnum,this->lid,&a,&m); 3756 3757 this->inputs2->GetArray(SmbTEnum,this->lid,&T,&m); 3758 EC_input = this->GetInput2(SmbECEnum); _assert_(EC_input); 3757 3759 EC_input->GetInputAverage(&EC); 3760 EC=EC*dt*rho_ice; 3758 3761 3759 3762 //fixed lower temperature bounday condition - T is fixed … … 3792 3795 if(VerboseSmb() && this->Sid()==0 && IssmComm::GetRank()==0)_printf0_("Time: t=" << setprecision(8) << t/365.0/24.0/3600.0 << " yr/" << (time+dt)/365.0/24.0/3600.0 << " yr" << setprecision(3) << " Step: " << count << "\n"); 3793 3796 3794 Input2 *Ta_input = this->GetInput2(SmbTaEnum,t-time+timeclim); _assert_(Ta_input);3797 Input2 *Ta_input = this->GetInput2(SmbTaEnum,t-time+timeclim); _assert_(Ta_input); 3795 3798 Input2 *V_input = this->GetInput2(SmbVEnum,t-time+timeclim); _assert_(V_input); 3796 3799 Input2 *Dlwr_input= this->GetInput2(SmbDlwrfEnum,t-time+timeclim); _assert_(Dlwr_input); … … 3809 3812 pAir_input->GetInputValue(&pAir,gauss); // screen level air pressure [Pa] 3810 3813 teValue_input->GetInputValue(&teValue,gauss); // Emissivity [0-1] 3811 aValue_input->GetInputValue(&aValue,gauss); // screen level air pressure [Pa]3814 aValue_input->GetInputValue(&aValue,gauss); // Albedo [0 1] 3812 3815 //_printf_("Time: " << t << " Ta: " << Ta << " V: " << V << " dlw: " << dlw << " dsw: " << dsw << " P: " << P << " eAir: " << eAir << " pAir: " << pAir << "\n"); 3813 3816 /*}}}*/ … … 3922 3925 this->inputs2->SetArrayInput(SmbWEnum,this->lid,W,m); 3923 3926 this->inputs2->SetArrayInput(SmbAEnum,this->lid,a,m); 3924 this->inputs2->SetArrayInput(SmbAEnum,this->lid,a,m);3925 3927 this->SetElementInput(SmbECEnum,sumEC/dt/rho_ice); 3926 3928 this->SetElementInput(SmbMassBalanceEnum,(sumP + sumEC -sumR)/dt/rho_ice); -
issm/trunk-jpl/src/c/classes/FemModel.cpp
r24498 r24507 2424 2424 if(rank_arraysize>max_rank_arraysize)max_rank_arraysize=rank_arraysize; 2425 2425 } 2426 rank_arraysize=max_rank_arraysize; 2426 2427 2427 2428 /*Broadcast for cpus that do not have any elements*/ … … 2495 2496 for(int j=0;j<elements->Size();j++){ 2496 2497 Element* element=xDynamicCast<Element*>(this->elements->GetObjectByOffset(j)); 2497 element->ResultToMatrix(values,ncols, 2498 element->ResultToMatrix(values,ncols,output_enum); 2498 2499 } 2499 2500 /*Gather from all cpus*/ -
issm/trunk-jpl/src/c/cores/smb_core.cpp
r24240 r24507 37 37 int numaveragedinput; 38 38 femmodel->parameters->FindParam(&dtslices,SmbStepsPerStepEnum); 39 /*interm iedaries to deal with averaging*/39 /*intermediaries to deal with averaging*/ 40 40 static const int substeplist[2] = {SmbMassBalanceSubstepEnum,SmbRunoffSubstepEnum}; 41 41 static const int transientlist[2] = {SmbMassBalanceTransientEnum,SmbRunoffTransientEnum}; … … 53 53 } 54 54 55 /*if yes compute necessary interm iedaries and start looping*/55 /*if yes compute necessary intermediaries and start looping*/ 56 56 if (dtslices>1){ 57 57 int substep; -
issm/trunk-jpl/src/c/modules/SurfaceMassBalancex/Gembx.cpp
r24280 r24507 650 650 // discretized heat equation: 651 651 652 // Tp = (Au*Tu ° + Ad*Td° + (Ap-Au-Ad)Tp°+ S) / Ap652 // Tp = (Au*Tuo+ Ad*Tdo+ (Ap-Au-Ad)Tpo+ S) / Ap 653 653 654 654 // where neighbor coefficients Au, Ap, & Ad are … … 659 659 660 660 // and u & d represent grid points up and down from the center grid point 661 // p and // u & d represent grid points up and down from the center grid 662 // point p and ° identifies previous time step values. S is a source term. 661 // point p and o identifies previous time step values. S is a source term. 663 662 664 663 // u, d, and p conductivities
Note:
See TracChangeset
for help on using the changeset viewer.