Changeset 2773


Ignore:
Timestamp:
01/06/10 15:05:10 (15 years ago)
Author:
Mathieu Morlighem
Message:

forgot to normalize vector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/parallel/control_core.cpp

    r2760 r2773  
    116116                /*Normalize if last gradient not satisfying (search_scalar==0)*/
    117117                if (n>0 && search_scalar==0){
    118                         _printf_("%s","      normalizing directions...");
     118                        _printf_("%s","      orthogonalization...");
    119119                        Orthx(&new_grad_g,grad_g,grad_g_old);
    120120                        _printf_("%s\n"," done.");
    121121                }
    122122                else{
    123                         VecDuplicate(grad_g,&new_grad_g);
    124                         VecCopy(grad_g,new_grad_g);
     123                        _printf_("%s","      normalizing directions...");
     124                        Orthx(&new_grad_g,grad_g,NULL);
     125                        _printf_("%s\n"," done.");
    125126                }
    126127                VecFree(&grad_g); VecFree(&grad_g_old);
Note: See TracChangeset for help on using the changeset viewer.