46 use Logfile_interface,
ONLY : Logfile_stampMessage
49#include "Flashx_mpi_implicitNone.fh"
52 character(len
=*),
intent(in) :: name
53 real,
intent(inout) :: value
54 logical,
intent(in) :: current_val
56 character(
len=MAX_STRING_LENGTH) :: buff1, buff2
57 integer,
intent(out) :: error
60 call MPI_comm_rank(
MPI_COMM_WORLD, myPE, ierr)
66 if (
associated(node))
then
69 else if(
.NOT. current_val)
then
70 value = node
%initValue
73 call Driver_abort(
"nameValueLL_getReal: logical value current_val has improper value")
76 buff1
= "WARNING: requested real parameter '" // trim(name)
// "' not found"
77 call Logfile_stampMessage(buff1)
95 use Logfile_interface,
ONLY : Logfile_stampMessage
98#include "Flashx_mpi_implicitNone.fh"
101 character(len
=*),
intent(in) :: name
102 integer,
intent(inout) :: value
103 logical,
intent(in) :: current_val
105 character(
len=MAX_STRING_LENGTH) :: buff1, buff2
106 integer,
intent(out) :: error
108 integer :: myPE, ierr
110 call MPI_comm_rank(
MPI_COMM_WORLD, myPE, ierr)
115 if (
associated(node))
then
116 if (current_val)
then
118 else if(
.NOT. current_val)
then
119 value = node
%initValue
121 call Driver_abort(
"nameValueLL_getInt: logical value current_val has improper value")
124 buff1
= "WARNING: requested integer parameter '" // trim(name)
// "' not found"
125 call Logfile_stampMessage(buff1)
142 use Logfile_interface,
ONLY : Logfile_stampMessage
144#include "constants.h"
145#include "Flashx_mpi_implicitNone.fh"
148 character(len
=*),
intent(in) :: name
149 character(len
=*),
intent(inout) :: value
150 logical,
intent(in) :: current_val
152 character(
len=MAX_STRING_LENGTH) :: buff1, buff2
153 integer,
intent(out) :: error
154 integer :: myPE, ierr
156 call MPI_comm_rank(
MPI_COMM_WORLD, myPE, ierr)
161 if (
associated(node))
then
162 if (current_val)
then
164 else if(
.NOT. current_val)
then
165 value = node
%initValue
167 call Driver_abort(
"nameValueLL_getStr: logical value current_val has improper value")
170 buff1
= "WARNING: requested string parameter '" // trim(name)
// "' not found"
171 call Logfile_stampMessage(buff1)
192 use Logfile_interface,
ONLY : Logfile_stampMessage
194#include "constants.h"
195#include "Flashx_mpi_implicitNone.fh"
198 character(len
=*),
intent(in) :: name
199 logical,
intent(inout) :: value
200 logical,
intent(in) :: current_val
202 character(
len=MAX_STRING_LENGTH) :: buff1, buff2
203 integer,
intent(out) :: error
204 integer :: myPE, ierr
206 call MPI_comm_rank(
MPI_COMM_WORLD, myPE, ierr)
212 if (
associated(node))
then
213 if (current_val)
then
215 else if(
.NOT. current_val)
then
216 value = node
%initValue
218 call Driver_abort(
"nameValueLL_getLog: logical value current_val has improper value")
221 buff1
= "WARNING: requested logical parameter '" // trim(name)
// "' not found"
222 call Logfile_stampMessage(buff1)
subroutine nameValueLL_getInt(context, name, value, current_val, error)
subroutine nameValueLL_getLog(context, name, value, current_val, error)
subroutine nameValueLL_getReal(context, name, value, current_val, error)
subroutine nameValueLL_getStr(context, name, value, current_val, error)