Solves the system Ax=b and return the solution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(hypre_obj), | intent(inout) | :: | this |
Hypre machinery |
||
| type(eulerian_obj_r), | intent(inout) | :: | sol |
Solution vector |
impure subroutine hypre_obj_Solve(this,sol) !> Solves the system Ax=b and return the solution. implicit none class(hypre_obj), intent(inout):: this !! Hypre machinery type(eulerian_obj_r),intent(inout):: sol !! Solution vector select case (this%interface) case (HYPRE_INT_Struct) call hypre_obj_SolveS(this,sol) case (HYPRE_INT_SStruct) case (HYPRE_INT_IJ) call hypre_obj_SolveIJ(this,sol) case default call this%parallel%Stop("Unknown or uninitialized HYPRE interface") end select return end subroutine hypre_obj_Solve