source: issm/oecreview/Archive/18296-19100/ISSM-18572-18573.diff

Last change on this file was 19102, checked in by Mathieu Morlighem, 10 years ago

NEW: added 18296-19100

File size: 1.2 KB
  • ../trunk-jpl/src/c/cores/controlvalidation_core.cpp

     
    3535        X0 = Xpetsc->ToMPISerial();
    3636        delete Xpetsc;
    3737
    38         /*Allocate Gradient and current vector*/
    39         G = xNew<IssmDouble>(n);
     38        /*Allocate current vector*/
    4039        X = xNew<IssmDouble>(n);
    4140
    4241        /*out of solution_type, figure out solution core and adjoint function pointer*/
     
    109108        femmodel->OutputControlsx(&femmodel->results);
    110109
    111110        /*Clean up and return*/
     111        xDelete<IssmDouble>(output);
    112112        xDelete<IssmDouble>(G);
    113113        xDelete<IssmDouble>(X);
    114114        xDelete<IssmDouble>(X0);
  • ../trunk-jpl/src/c/classes/FemModel.cpp

     
    14841484                         /*Compute SurfaceAbsMisfitEnum*/
    14851485                         J+=0.5*(surface-surfaceobs)*(surface-surfaceobs)*weight*Jdet*gauss->weight;
    14861486                 }
    1487 
     1487                 delete gauss;
     1488                 xDelete<IssmDouble>(xyz_list);
    14881489        }
    14891490
    14901491        /*Sum all J from all cpus of the cluster:*/
Note: See TracBrowser for help on using the repository browser.