NasCar
Loading...
Searching...
No Matches
Macros | Functions
Vectors.c File Reference

Create, Destroy, and Scatter of petsc Vectors. More...

#include "petsc.h"
#include "struct.h"
#include "Vectors.h"
Include dependency graph for Vectors.c:

Macros

#define __FUNCT__   "VectorsCreate"
 
#define __FUNCT__   "VectorsDestroy"
 
#define __FUNCT__   "VectorsScatter"
 

Functions

PetscErrorCode VectorsCreate (Simu simu, Grid grid, Fields *vec, Linear *lin, Arrays *arr, Obs obs)
 
PetscErrorCode VectorsDestroy (Simu simu, Grid grid, Fields *vec, Linear *lin, Arrays *arr, Obs obs)
 
PetscErrorCode VectorsScatter (DM grid, Vec vec, double ****arr)
 

Detailed Description

Create, Destroy, and Scatter of petsc Vectors.

Version
0.0
Author
Michel Bergmann
Date
2023-03-03

Function Documentation

◆ VectorsCreate()

PetscErrorCode VectorsCreate ( Simu  simu,
Grid  grid,
Fields vec,
Linear lin,
Arrays arr,
Obs  obs 
)

Create all local and global petsc vectors

◆ VectorsDestroy()

PetscErrorCode VectorsDestroy ( Simu  simu,
Grid  grid,
Fields vec,
Linear lin,
Arrays arr,
Obs  obs 
)

Destroy all local and global petsc vectors

◆ VectorsScatter()

PetscErrorCode VectorsScatter ( DM  grid,
Vec  vec,
double ****  arr 
)

Local vectors scatters to get the ghost values