Ignore:
Timestamp:
03/12/12 09:35:33 (13 years ago)
Author:
Eric.Larour
Message:

Large commit, to strip out Petsc from the code. Created new Matrix and Vector
wrapper objects to the Petsc Mat and Vec objects. These wrappers make it possible
to hook up a different package to handle matrix and vector operations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/GetSolutionFromInputsx/GetSolutionFromInputsx.cpp

    r8224 r11679  
    99#include "../../EnumDefinitions/EnumDefinitions.h"
    1010
    11 void    GetSolutionFromInputsx( Vec* psolution, Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads, Materials* materials,  Parameters* parameters){
     11void    GetSolutionFromInputsx( Vector** psolution, Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads, Materials* materials,  Parameters* parameters){
    1212
    1313        /*intermediary: */
     
    1919
    2020        /*output: */
    21         Vec solution=NULL;
     21        Vector* solution=NULL;
    2222
    2323        /*retrive parameters: */
     
    2929       
    3030        /*Initialize solution: */
    31         solution=NewVec(gsize);
     31        solution=new Vector(gsize);
    3232       
    3333        /*Go through elements and plug solution: */
     
    3838
    3939        /*Assemble vector: */
    40         VecAssemblyBegin(solution);
    41         VecAssemblyEnd(solution);
     40        solution->Assemble();
    4241
    4342        /*Assign output pointers:*/
Note: See TracChangeset for help on using the changeset viewer.