implementations.datatype_classes.petsc_vec module

class petsc_vec(init=None, val=0.0)[source]

Bases: Vec

bcast(root=None, comm=None)[source]

Routine for broadcasting values

Parameters:
  • root (int) – process with value to broadcast

  • comm – communicator

Returns:

broadcasted values

irecv(source=None, tag=None, comm=None)[source]

Routine for receiving in time

Parameters:
  • source (int) – source rank

  • tag (int) – communication tag

  • comm – communicator

Returns:

None

isend(dest=None, tag=None, comm=None)[source]

Routine for sending data forward in time (non-blocking)

Parameters:
  • dest (int) – target rank

  • tag (int) – communication tag

  • comm – communicator

Returns:

request handle

class petsc_vec_comp2(init, val=0.0)[source]

Bases: object

RHS data type for Vec with implicit and explicit components

This data type can be used to have RHS with 2 components (here implicit and explicit)

impl

implicit part

Type:

petsc_vec

expl

explicit part

Type:

petsc_vec

class petsc_vec_imex(init, val=0.0)[source]

Bases: object

RHS data type for Vec with implicit and explicit components

This data type can be used to have RHS with 2 components (here implicit and explicit)

impl

implicit part

Type:

petsc_vec

expl

explicit part

Type:

petsc_vec