Changeset 23799
- Timestamp:
- 03/14/19 15:58:58 (6 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/FloatingiceMeltingRatex/FloatingiceMeltingRatex.cpp
r23797 r23799 88 88 IssmDouble* areas_summed_cpu = xNewZeroInit<IssmDouble>(num_basins); 89 89 90 /* TEST: Set tf=2 for all ice shelf elements*/90 /*Get TF at each ice shelf point - linearly intepolate in depth and time*/ 91 91 for(int i=0;i<femmodel->elements->Size();i++){ 92 92 Element* element = xDynamicCast<Element*>(femmodel->elements->GetObjectByOffset(i)); … … 130 130 } 131 131 else { 132 /*get values between two times [offset:offset+1 [, Interpolate linearly*/132 /*get values between two times [offset:offset+1], Interpolate linearly*/ 133 133 _assert_(depth>=tf_depths[offset] && depth<tf_depths[offset+1]); 134 134 IssmDouble deltaz=tf_depths[offset+1]-tf_depths[offset]; … … 145 145 xDelete<IssmDouble>(tf_test); 146 146 xDelete<IssmDouble>(depth_vertices); 147 delete gauss; 147 148 } 148 149 -
issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateParameters.cpp
r23795 r23799 228 228 parameters->AddObject(iomodel->CopyConstantObject("md.basalforcings.num_basins",BasalforcingsIsmp6NumBasinsEnum)); 229 229 parameters->AddObject(iomodel->CopyConstantObject("md.basalforcings.gamma_0",BasalforcingsIsmp6Gamma0Enum)); 230 iomodel->FindConstant(&temp_n,"md.basalforcings.num_basins"); 231 iomodel->FetchData(&transparam,NULL,&M,"md.basalforcings.delta_t"); 232 parameters->AddObject(new DoubleVecParam(BasalforcingsIsmp6DeltaTEnum,transparam,temp_n)); 233 xDelete<IssmDouble>(transparam); 234 iomodel->FetchData(&transparam,NULL,NULL,"md.basalforcings.tf_depths"); 235 parameters->AddObject(new DoubleVecParam(BasalforcingsIsmp6TfDepthsEnum,transparam,3)); 230 iomodel->FetchData(&transparam,&M,&N,"md.basalforcings.delta_t"); 231 parameters->AddObject(new DoubleVecParam(BasalforcingsIsmp6DeltaTEnum,transparam,N)); 232 xDelete<IssmDouble>(transparam); 233 iomodel->FetchData(&transparam,&M,&N,"md.basalforcings.tf_depths"); 234 parameters->AddObject(new DoubleVecParam(BasalforcingsIsmp6TfDepthsEnum,transparam,N)); 236 235 xDelete<IssmDouble>(transparam); 237 236 break; -
issm/trunk-jpl/src/m/classes/basalforcingsismip6.m
r23781 r23799 83 83 WriteData(fid,prefix,'object',self,'fieldname','num_basins','format','Integer'); 84 84 WriteData(fid,prefix,'object',self,'fieldname','basin_id','data',self.basin_id-1,'name','md.basalforcings.basin_id','format','IntMat','mattype',2); %0-indexed 85 WriteData(fid,prefix,'object',self,'fieldname','gamma_0','format','Double' );85 WriteData(fid,prefix,'object',self,'fieldname','gamma_0','format','Double','scale',1./yts); 86 86 WriteData(fid,prefix,'object',self,'fieldname','tf_depths','format','DoubleMat','name','md.basalforcings.tf_depths'); 87 87 WriteData(fid,prefix,'object',self,'fieldname','tf','format','MatArray','name','md.basalforcings.tf','timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
Note:
See TracChangeset
for help on using the changeset viewer.