Sets up the rhs vector.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(hypre_obj), | intent(inout) | :: | this |
Hypre machinery |
impure subroutine hypre_obj_SetupRHSS(this) !> Sets up the rhs vector. implicit none class(hypre_obj), intent(inout) :: this !! Hypre machinery ! Work variables integer :: ierr ! Create empty vector call HYPRE_StructVectorCreate(this%comm,this%grid,this%rhs,ierr) ! Indicate vector coefficients are ready to set call HYPRE_StructVectorInitialize(this%rhs,ierr) ! Assemble for future use call HYPRE_StructVectorAssemble(this%rhs,ierr) !call HYPRE_StructVectorPrint('vec',this%rhs,ierr) return end subroutine hypre_obj_SetupRHSS