Ignore:
Timestamp:
08/19/10 11:22:37 (15 years ago)
Author:
Mathieu Morlighem
Message:

Fixed misfit 3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/solutions/adjointbalancedthickness_core.cpp

    r5378 r5414  
    2424        femmodel->parameters->FindParam(&solution_type,SolutionTypeEnum);
    2525
    26         /*set analysis type to compute velocity: */
     26        /*compute thickness */
    2727        _printf_("%s\n","      computing thickness");
    2828        femmodel->SetCurrentConfiguration(BalancedthicknessAnalysisEnum);
    2929        solver_linear(femmodel);
    3030
    31         /*Update inputs using adjoint solution, and same type of setup as diagnostic solution: */
     31        /*Call SurfaceAreax, because some it might be needed by PVector*/
     32        SurfaceAreax(NULL,femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters);
     33
     34        /*compute adjoint*/
    3235        _printf_("%s\n","      computing adjoint");
    3336        femmodel->SetCurrentConfiguration(BalancedthicknessAnalysisEnum,AdjointBalancedthicknessAnalysisEnum);
    3437        solver_adjoint_linear(femmodel);
    3538       
     39        /*Save results*/
    3640        if(solution_type==AdjointSolutionEnum && !control_analysis){
    3741                if(verbose)_printf_("saving results:\n");
Note: See TracChangeset for help on using the changeset viewer.