FLASH-X
Doxygen Generated Documentation From Interface Source Code
concatStringWithInt.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!!
22
23subroutine concatStringWithInt(inString, ind, outString )
24
25#include "constants.h"
26
27 implicit none
28 character(len=*),intent(IN) :: inString
29 integer,intent(IN) :: ind
30 character(len=MAX_STRING_LENGTH),intent(OUT) :: outString
31
32
33 character(len=MAX_STRING_LENGTH) :: parname
34 integer :: pos
35
36
37 pos=len_trim(inString)+1
38 parname= ""
39 write(parname, *) ind
40 parname = ADJUSTL(parname)
41 outString=inString(:pos-1)//parname
42
43
44end subroutine concatStringWithInt
subroutine concatStringWithInt(inString, ind, outString)