Changeset 16473


Ignore:
Timestamp:
10/21/13 08:01:56 (11 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixinf some errors (see NR report)

Location:
issm/trunk-jpl/src/c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/bedslope_core.cpp

    r16470 r16473  
    3333                if(VerboseSolution()) _printf0_("   saving results\n");
    3434                if(meshtype!=Mesh2DverticalEnum){
     35                        const char* outputs [] = {"BedSlopeX","BedSlopeY"};
     36                        femmodel->RequestedOutputsx(&femmodel->results,(char**)&outputs[0],2);
     37                }
     38                else{
    3539                        const char* outputs [] = {"BedSlopeX"};
    3640                        femmodel->RequestedOutputsx(&femmodel->results,(char**)&outputs[0],1);
    37                 }
    38                 else{
    39                         const char* outputs [] = {"BedSlopeX","BedSlopeY"};
    40                         femmodel->RequestedOutputsx(&femmodel->results,(char**)&outputs[0],2);
    4141                }
    4242        }
  • issm/trunk-jpl/src/c/analyses/surfaceslope_core.cpp

    r16470 r16473  
    3131                if(VerboseSolution()) _printf0_("saving results:\n");
    3232                if(meshtype!=Mesh2DverticalEnum){
     33                        const char* outputs [] = {"SurfaceSlopeX","SurfaceSlopeY"};
     34                        femmodel->RequestedOutputsx(&femmodel->results,(char**)&outputs[0],2);
     35
     36                }
     37                else{
    3338                        const char* outputs [] = {"SurfaceSlopeX"};
    3439                        femmodel->RequestedOutputsx(&femmodel->results,(char**)&outputs[0],1);
    35                 }
    36                 else{
    37                         const char* outputs [] = {"SurfaceSlopeX","SurfaceSlopeY"};
    38                         femmodel->RequestedOutputsx(&femmodel->results,(char**)&outputs[0],2);
    3940                }
    4041        }
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r16470 r16473  
    619619                                        vector_result->Assemble();
    620620
    621                                         results->AddObject(new GenericExternalResult<Vector<IssmPDouble>*>(results->Size()+1,output_enum,vector_result,step,time));
     621                                        results->AddResult(new GenericExternalResult<Vector<IssmPDouble>*>(results->Size()+1,output_enum,vector_result,step,time));
    622622                                        isvec = true;
    623623                                        break;
     
    631631                /*Add result to Results*/
    632632                if(!isvec){
    633                         results->AddObject(new GenericExternalResult<IssmPDouble>(results->Size()+1,output_string,reCast<IssmPDouble>(double_result),step,time));
     633                        results->AddResult(new GenericExternalResult<IssmPDouble>(results->Size()+1,output_string,reCast<IssmPDouble>(double_result),step,time));
    634634                }
    635635        }
Note: See TracChangeset for help on using the changeset viewer.