Changeset 17080
- Timestamp:
- 01/09/14 12:00:05 (11 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/MasstransportAnalysis.cpp
r17078 r17080 109 109 iomodel->FetchDataToInput(elements,SurfaceforcingsBNegEnum); 110 110 break; 111 case SurfaceforcingsEnum: /*To Be REMOVED*/112 iomodel->Constant(&ispdd,SurfaceforcingsIspddEnum);113 iomodel->Constant(&isdelta18o,SurfaceforcingsIsdelta18oEnum);114 iomodel->Constant(&issmbgradients,SurfaceforcingsIssmbgradientsEnum);115 if(issmbgradients){116 iomodel->FetchDataToInput(elements,SurfaceforcingsHrefEnum);117 iomodel->FetchDataToInput(elements,SurfaceforcingsSmbrefEnum);118 iomodel->FetchDataToInput(elements,SurfaceforcingsBPosEnum);119 iomodel->FetchDataToInput(elements,SurfaceforcingsBNegEnum);120 }121 if(ispdd){122 iomodel->FetchDataToInput(elements,ThermalSpctemperatureEnum);123 if(isdelta18o){124 iomodel->FetchDataToInput(elements,SurfaceforcingsTemperaturesLgmEnum);125 iomodel->FetchDataToInput(elements,SurfaceforcingsTemperaturesPresentdayEnum);126 iomodel->FetchDataToInput(elements,SurfaceforcingsPrecipitationsPresentdayEnum);127 }128 else{129 iomodel->FetchDataToInput(elements,SurfaceforcingsPrecipitationEnum);130 iomodel->FetchDataToInput(elements,SurfaceforcingsMonthlytemperaturesEnum);131 }132 }133 if(~ispdd && ~issmbgradients){134 iomodel->FetchDataToInput(elements,SurfaceforcingsMassBalanceEnum,0.);135 }136 break;137 111 default: 138 112 _error_("Surface mass balance model "<<EnumToStringx(smb_model)<<" not supported yet"); -
issm/trunk-jpl/src/c/classes/Materials/Matpar.cpp
r17078 r17080 53 53 case SMBgradientsEnum: 54 54 /*Nothing to add*/ 55 break;56 case SurfaceforcingsEnum: /*To Be REMOVED*/57 iomodel->Constant(&ispdd,SurfaceforcingsIspddEnum);58 if(ispdd){59 iomodel->Constant(&this->desfac,SurfaceforcingsDesfacEnum);60 iomodel->Constant(&this->s0p,SurfaceforcingsS0pEnum);61 }62 55 break; 63 56 default: -
issm/trunk-jpl/src/c/cores/masstransport_core.cpp
r17078 r17080 58 58 SmbGradientsx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters); 59 59 break; 60 case SurfaceforcingsEnum: /*To Be REMOVED*/61 femmodel->parameters->FindParam(&issmbgradients,SurfaceforcingsIssmbgradientsEnum);62 femmodel->parameters->FindParam(&ispdd,SurfaceforcingsIspddEnum);63 femmodel->parameters->FindParam(&isdelta18o,SurfaceforcingsIsdelta18oEnum);64 if(issmbgradients){65 if(VerboseSolution())_printf_(" call smb gradients module\n\n");66 SmbGradientsx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters);67 }68 if(ispdd){69 if(isdelta18o){70 if(VerboseSolution()) _printf0_(" call Delta18oParametrization module\n");71 Delta18oParameterizationx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters);72 }73 if(VerboseSolution()) _printf0_(" call positive degree day module\n");74 PositiveDegreeDayx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters);75 }76 break;77 60 default: 78 61 _error_("Surface mass balance model "<<EnumToStringx(smb_model)<<" not supported yet"); -
issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateParameters.cpp
r17078 r17080 115 115 /*Nothing to add to parameters*/ 116 116 break; 117 case SurfaceforcingsEnum: /*To Be REMOVED*/118 parameters->AddObject(iomodel->CopyConstantObject(SurfaceforcingsIspddEnum));119 parameters->AddObject(iomodel->CopyConstantObject(SurfaceforcingsIsdelta18oEnum));120 parameters->AddObject(iomodel->CopyConstantObject(SurfaceforcingsIssmbgradientsEnum));121 iomodel->Constant(&ispdd,SurfaceforcingsIspddEnum);122 if(ispdd){123 parameters->AddObject(iomodel->CopyConstantObject(SurfaceforcingsDesfacEnum));124 parameters->AddObject(iomodel->CopyConstantObject(SurfaceforcingsS0pEnum));125 iomodel->Constant(&isdelta18o,SurfaceforcingsIsdelta18oEnum);126 if(isdelta18o){127 IssmDouble *temp = NULL;128 IssmDouble yts;129 int N,M;130 iomodel->Constant(&yts,ConstantsYtsEnum);131 iomodel->FetchData(&temp,&N,&M,SurfaceforcingsDelta18oEnum); _assert_(N==2);132 for(i=0;i<M;i++) temp[M+i]=yts*temp[M+i];133 parameters->AddObject(new TransientParam(SurfaceforcingsDelta18oEnum,&temp[0],&temp[M],M));134 iomodel->DeleteData(temp,SurfaceforcingsDelta18oEnum);135 136 iomodel->FetchData(&temp,&N,&M,SurfaceforcingsDelta18oSurfaceEnum); _assert_(N==2);137 for(i=0;i<M;i++) temp[M+i]=yts*temp[M+i];138 parameters->AddObject(new TransientParam(SurfaceforcingsDelta18oSurfaceEnum,&temp[0],&temp[M],M));139 iomodel->DeleteData(temp,SurfaceforcingsDelta18oSurfaceEnum);140 }141 }142 break;143 117 default: 144 118 _error_("Surface mass balance model "<<EnumToStringx(smb_model)<<" not supported yet");
Note:
See TracChangeset
for help on using the changeset viewer.