Skip to content

Commit

Permalink
CPU meas of inversion in RunInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
GHilmarG committed Jan 11, 2024
1 parent c263468 commit 9f36c10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Ua2D.m
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,13 @@
%x=coordinates(:,1); y=coordinates(:,2); DT = DelaunayTri(x,y); TRI=DT.Triangulation;
%figure(21) ; trisurf(TRI,x/CtrlVar.PlotXYscale,y/CtrlVar.PlotXYscale,h) ; title(' h')


fprintf('\n ========================= Inverting for model parameters. ========================= \n')

RunInfo.CPU.Inversion=tic;
[UserVar,F,l,InvFinalValues,RunInfo]=...
InvertForModelParameters(UserVar,CtrlVar,MUA,BCs,F,l,InvStartValues,Priors,Meas,BCsAdjoint,RunInfo);

RunInfo.CPU.Inversion=toc(RunInfo.CPU.Inversion);

F.C=InvFinalValues.C ; %fprintf(CtrlVar.fidlog,' C set equal to InvFinalValues.C. ');
F.AGlen=InvFinalValues.AGlen ; %fprintf(CtrlVar.fidlog,' AGlen set equal InvFinalValues.AGlen \n ');
Expand Down
1 change: 1 addition & 0 deletions UaRunInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
obj.CPU.Assembly.uvh=0;
obj.CPU.Solution.uvh=0;
obj.CPU.WallTime="";
obj.CPU.Inversion=0;


obj.Message="" ;
Expand Down

0 comments on commit 9f36c10

Please sign in to comment.