Changeset 12024


Ignore:
Timestamp:
04/17/12 08:10:20 (13 years ago)
Author:
Mathieu Morlighem
Message:

Fixed conversion from PETSc vector to double vector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/matlab/io/PetscVectorToDoubleVector.cpp

    r12013 r12024  
    11/* \file PetscVectorToDoubleVector.cpp
    22 */
    3 
    43
    54#ifdef HAVE_CONFIG_H
     
    98#endif
    109
    11 
    1210/*Petsc includes: */
    1311#include "petscmat.h"
     
    1513#include "petscksp.h"
    1614
    17 /*Petsc includes: */
    1815#include "mex.h"
    19 
    2016#include "../../shared/shared.h"
    2117#include <string>
    22 
    2318
    2419void PetscVectorToDoubleVector(double** pvector, int* prows, Vec petsc_vector){
     
    3328
    3429        /*Get size of vector: */
    35         if(vector){
     30        if(petsc_vector){
    3631                VecGetSize(petsc_vector,&rows);
    3732                if(rows){
Note: See TracChangeset for help on using the changeset viewer.