QR_MUMPS
Functions/Subroutines
qrm_remap_pnt.F90 File Reference

This file contains a routine that does a dirty trick to convert a 1d array into a 2d array. More...

Go to the source code of this file.

Functions/Subroutines

subroutine _qrm_remap_pnt (arr1d, pnt2d, n)
 This function makes a 2D pointer point to a 1D array. More...
 

Detailed Description

This file contains a routine that does a dirty trick to convert a 1d array into a 2d array.

Date
2016-01-29 22:22:30 +0100 (Fri, 29 Jan 2016)
Author
abuttari
Version
1.1
Revision
2075

Definition in file qrm_remap_pnt.F90.

Function/Subroutine Documentation

subroutine _qrm_remap_pnt ( dimension(1:n), target  arr1d,
dimension(:,:), pointer  pnt2d,
integer  n 
)

This function makes a 2D pointer point to a 1D array.

This is needed to have a single code handling single and multiple right-hand-sides. This is a dirty workaround that relies on iso_c_binding while waiting for the array bounds remapping to be supported by compilers (in F2008 standard).

Input: arr1d - the input 1d array

Output: pnt2d - the output 2d pointer pointing to arr1d

Definition at line 49 of file qrm_remap_pnt.F90.

Referenced by _qrm_apply1d(), and _qrm_solve1d().