Changeset 27020
- Timestamp:
- 05/24/22 02:33:47 (3 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/LevelsetAnalysis.cpp
r27019 r27020 171 171 172 172 int calvinglaw; 173 IssmDouble *transparam = NULL; 174 IssmDouble yts; 175 int N,M; 176 bool interp,cycle; 177 173 178 iomodel->FindConstant(&calvinglaw,"md.calving.law"); 174 179 switch(calvinglaw){ … … 192 197 break; 193 198 case CalvingTestEnum: 194 parameters->AddObject(iomodel->CopyConstantObject("md.calving.speedfactor",CalvingTestSpeedfactorEnum)); 199 iomodel->FetchData(&transparam,&N,&M,"md.calving.speedfactor"); 200 iomodel->FindConstant(&interp,"md.timestepping.interp_forcing"); 201 iomodel->FindConstant(&cycle,"md.timestepping.cycle_forcing"); 202 if(N==1){ 203 _assert_(M==1); 204 parameters->AddObject(new DoubleParam(CalvingTestSpeedfactorEnum,transparam[0])); 205 } 206 else{ 207 _assert_(N==2); 208 parameters->AddObject(new TransientParam(CalvingTestSpeedfactorEnum,&transparam[0],&transparam[M],interp,cycle,M)); 209 } 210 xDelete<IssmDouble>(transparam); 195 211 break; 196 212 case CalvingParameterizationEnum: … … 209 225 int melt_parameterization; 210 226 iomodel->FindConstant(&melt_parameterization,"md.frontalforcings.parameterization"); 211 int M,N;212 IssmDouble* transparam = NULL;213 227 switch(melt_parameterization){ 214 228 case FrontalForcingsDefaultEnum: -
issm/trunk-jpl/src/c/classes/Elements/Element.cpp
r26983 r27020 3556 3556 case CalvingParameterizationEnum: 3557 3557 this->CalvingRateParameterization(); 3558 break; 3559 case CalvingTestEnum: 3560 this->CalvingRateTest(); 3558 3561 break; 3559 3562 default: -
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r27009 r27020 373 373 IssmDouble calvingrate[NUMVERTICES]; 374 374 IssmDouble vx,vy; 375 IssmDouble time; 376 IssmDouble coeff; 375 377 376 378 /*Retrieve all inputs and parameters we will need*/ 377 IssmDouble coeff = parameters->FindParam(CalvingTestSpeedfactorEnum); 379 parameters->FindParam(&time,TimeEnum); 380 parameters->FindParam(&coeff,CalvingTestSpeedfactorEnum,time); 381 378 382 Input* vx_input = this->GetInput(VxEnum); _assert_(vx_input); 379 383 Input* vy_input = this->GetInput(VyEnum); _assert_(vy_input);
Note:
See TracChangeset
for help on using the changeset viewer.