FLASH-X
Doxygen Generated Documentation From Interface Source Code
nameValueLL_logRules.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!!
25
26subroutine nameValueLL_logRulesInt ( name, numValues, minValues, maxValues)
27
28 implicit none
29
30#include "constants.h"
31
32 character(len=*), intent(in) :: name
33 integer, intent(in) :: numValues
34 integer,dimension(numValues),intent(in):: minValues,maxValues
35 integer :: ctr
36
37 ! print the message to screen directly (no Logfile setup yet)
38 print *,"[nameValueLL] Rules for integer Parameter ",trim(name),": Union of following closed intervals"
39 do ctr =1, numValues
40 print *, "[nameValueLL] ",minValues(ctr)," ... ", maxValues(ctr)
41 enddo
42
43end subroutine nameValueLL_logRulesInt
44
45subroutine nameValueLL_logRulesReal ( name, numValues, minValues, maxValues)
46
47 implicit none
48
49#include "constants.h"
50
51 character(len=*), intent(in) :: name
52 integer, intent(in) :: numValues
53 real,dimension(numValues),intent(in):: minValues,maxValues
54 integer :: ctr
55
56 print *, "[nameValueLL] Rules for real Parameter ", trim(name),": Union of following intervals"
57 do ctr =1, numValues
58 print *, "[nameValueLL] ",minValues(ctr)," ... ", maxValues(ctr)
59 enddo
60
61end subroutine nameValueLL_logRulesReal
62
63subroutine nameValueLL_logRulesStr ( name, numValues, validValues )
64
65 implicit none
66#include "constants.h"
67
68 character(len=*), intent(in) :: name
69 integer, intent(in) :: numValues
70 character(len=*),dimension(numValues),intent(in):: validValues
71 character (len=MAX_STRING_LENGTH) :: buf
72 integer :: ctr
73
74 print *,"[nameValueLL] Rules for string Parameter ",trim(name),": One of the following values"
75 do ctr =1, numValues
76 print *,"[nameValueLL] '",trim(validValues(ctr)),"'"
77 enddo
78
79end subroutine nameValueLL_logRulesStr
subroutine nameValueLL_logRulesReal(name, numValues, minValues, maxValues)
subroutine nameValueLL_logRulesInt(name, numValues, minValues, maxValues)
subroutine nameValueLL_logRulesStr(name, numValues, validValues)