Changeset 552
- Timestamp:
- 05/21/09 09:04:58 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ProcessParamsx/ProcessParamsx.cpp
r548 r552 34 34 double* p_g=NULL; 35 35 double* t_g=NULL; 36 double* m elting_g=NULL;36 double* m_g=NULL; 37 37 38 38 /*control: */ … … 176 176 parameters->FindParam((void*)&melting,"melting"); 177 177 178 /*Now, from temperature and melting, build t_g and m elting_g, correctly partitioned: */178 /*Now, from temperature and melting, build t_g and m_g, correctly partitioned: */ 179 179 t_g=(double*)xcalloc(numberofnodes,sizeof(double)); 180 m elting_g=(double*)xcalloc(numberofnodes,sizeof(double));180 m_g=(double*)xcalloc(numberofnodes,sizeof(double)); 181 181 182 182 for(i=0;i<numberofnodes;i++){ 183 183 t_g[(int)(partition[i])]=temperature[i]; 184 m elting_g[(int)(partition[i])]=melting[i];184 m_g[(int)(partition[i])]=melting[i]; 185 185 } 186 186 … … 192 192 193 193 count++; 194 param= new Param(count,"m elting_g",DOUBLEVEC);195 param->SetDoubleVec(m elting_g,numberofnodes);194 param= new Param(count,"m_g",DOUBLEVEC); 195 param->SetDoubleVec(m_g,numberofnodes); 196 196 parameters->AddObject(param); 197 197 … … 221 221 xfree((void**)&p_g); 222 222 xfree((void**)&t_g); 223 xfree((void**)&m elting_g);223 xfree((void**)&m_g); 224 224 225 225 }
Note:
See TracChangeset
for help on using the changeset viewer.