FLASH-X
Doxygen Generated Documentation From Interface Source Code
All Classes Namespaces Files Functions Variables Pages
ut_conversionInterface.F90
Go to the documentation of this file.
1!! NOTICE
2!! Copyright 2022 UChicago Argonne, LLC and contributors
3!!
4!! Licensed under the Apache License, Version 2.0 (the "License");
5!! you may not use this file except in compliance with the License.
6!!
7!! Unless required by applicable law or agreed to in writing, software
8!! distributed under the License is distributed on an "AS IS" BASIS,
9!! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10!! See the License for the specific language governing permissions and
11!! limitations under the License.
12!!
13!! This is the public interface file for the array conversion
14!! subroutines.
16
17 implicit none
18
19 interface
20 subroutine ut_convertToMemoryOffset(dims, elementCoord, arrayLBound, arrayUBound, memoryOffset)
21 implicit none
22 integer, intent(IN) :: dims
23 integer, dimension(1:dims), intent(IN) :: elementCoord, arrayUBound, arrayLBound
24 integer, intent(OUT) :: memoryOffset
25 end subroutine ut_convertToMemoryOffset
26 end interface
27
28 interface
29 subroutine ut_convertToArrayIndicies(dims, memoryOffset, arrayLBound, arrayUBound, elementCoord)
30 implicit none
31 integer, intent(IN) :: dims, memoryOffset
32 integer, dimension(1:dims), intent(IN) :: arrayLBound, arrayUBound
33 integer, dimension(1:dims), intent(OUT) :: elementCoord
34 end subroutine ut_convertToArrayIndicies
35 end interface
36