Changeset 5377


Ignore:
Timestamp:
08/18/10 14:58:10 (15 years ago)
Author:
Mathieu Morlighem
Message:

One adjoint per solution

Location:
issm/trunk/src/m/solutions
Files:
3 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/SetCurrentConfiguration.m

    r5057 r5377  
    3434
    3535        if found==-1,
    36                 error('SetCurrentConfiguration error message: could not find analysis_type in list of FemModel analyses');
     36                error(['SetCurrentConfiguration error message: could not find analysis_type ' EnumToString(configuration_enum) ' in list of FemModel analyses']);
    3737        end
    3838       
  • issm/trunk/src/m/solutions/control_core.m

    r5317 r5377  
    2929        %Get core from solution type
    3030        solutioncore=CorePointerFromSolutionEnum(solution_type);
     31        adjointcore=AdjointCorePointerFromSolutionEnum(solution_type);
    3132
    3233        %Preprocess models
     
    4445                        femmodel=steadystate_core(femmodel);
    4546                end
     47
     48                displaystring(verbose,'\n%s',['      compute adjoint state...']);
     49                eval(['femmodel=' adjointcore '(femmodel);']);
    4650
    4751                displaystring(verbose,'\n%s',['      computing gradJ...']);
  • issm/trunk/src/m/solutions/gradient_core.m

    r4535 r5377  
    2424        control_type=femmodel.parameters.ControlType;
    2525        control_steady=femmodel.parameters.ControlSteady;
    26 
    27         displaystring(verbose,'\n%s',['      compute adjoint state...']);
    28         femmodel=adjoint_core(femmodel);
    2926
    3027        displaystring(verbose,'\n%s',['      compute gradient...']);
Note: See TracChangeset for help on using the changeset viewer.