Changeset 27932
- Timestamp:
- 10/01/23 19:11:35 (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/cores/controlm1qn3_core.cpp
r27767 r27932 106 106 107 107 if(VerboseControl())_printf0_(" Computing initial solution\n"); 108 _printf0_("\n"); 109 _printf0_("Cost function f(x) | Gradient norm |g(x)| | List of contributions\n"); 110 _printf0_("____________________________________________________________________\n"); 108 InversionStatsHeader(num_cost_functions); 111 109 112 110 /*Prepare structure for m1qn3*/ … … 133 131 134 132 /*Print exit flag*/ 133 InversionStatsFooter(num_cost_functions); 135 134 switch(int(omode)){ 136 135 case 0: _printf0_(" Stop requested (indic = 0)\n"); break; … … 265 264 femmodel->CostFunctionx(&J,&Jtemp,NULL); 266 265 *pf = reCast<double>(J); 267 _printf0_("f(x) = "<<setw(12)<<setprecision(7)<<*pf<<" | ");268 266 269 267 /*Record cost function values and delete Jtemp*/ … … 274 272 if(*indic==0){ 275 273 /*dry run, no gradient required*/ 276 277 /*Retrieve objective functions independently*/ 278 _printf0_(" N/A |\n"); 279 for(int i=0;i<num_responses;i++) _printf0_(" "<<setw(12)<<setprecision(7)<<Jlist[(*Jlisti)*JlistN+i]); 280 _printf0_("\n"); 274 InversionStatsIter( (*Jlisti)+1, *pf, NAN, &Jlist[(*Jlisti)*JlistN], num_responses); 281 275 282 276 *Jlisti = (*Jlisti) +1; … … 313 307 314 308 /*Print info*/ 315 _printf0_(" "<<setw(12)<<setprecision(7)<<Gnorm<<" |"); 316 for(int i=0;i<num_responses;i++) _printf0_(" "<<setw(12)<<setprecision(7)<<Jlist[(*Jlisti)*JlistN+i]); 317 _printf0_("\n"); 309 InversionStatsIter( (*Jlisti)+1, *pf, Gnorm, &Jlist[(*Jlisti)*JlistN], num_responses); 318 310 319 311 /*Clean-up and return*/
Note:
See TracChangeset
for help on using the changeset viewer.