# Fortran runtime error: Substring out of bounds

**URL:** <https://fluka-forum.web.cern.ch/t/fortran-runtime-error-substring-out-of-bounds/2078>\
**Category:** Running and Runtime Errors\
**Created:** [27 July 2021 10:31 UTC](https://fluka-forum.web.cern.ch/t/fortran-runtime-error-substring-out-of-bounds/2078 "2021-07-27T10:31:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tvalliv](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/t/aca169/32.png) [@tvalliv](https://fluka-forum.web.cern.ch/u/tvalliv)\
**Post date:** [27 July 2021 10:31 UTC](https://fluka-forum.web.cern.ch/t/fortran-runtime-error-substring-out-of-bounds/2078/1 "2021-07-27T10:31:34Z")

</div>

Hi,  
I am running a file in fluka. While running the file , a temporary folder will be created in which all the output files are created and once the run is over these output files will be moved back to the parent folder. But in my case, the temporary folder remains there after the run. I’m getting this error in log file.

Fortran runtime error: Substring out of bounds: lower bound (-4) of ‘filpwx’ is less than one

Error termination. Backtrace:  
#0 0x7fd7b1209aed in ???  
#1 0x7fd7b120a605 in ???  
#2 0x7fd7b120ac72 in ???  
#3 0x559536d4535c in pwxsrd\_  
at /home/alfredo/fluprogfor/pwxsmvax/pwxsrd.f:93  
#4 0x559536c7eaf9 in xsread\_  
at /home/alfredo/fluprogfor/lowneumvax/xsread.f:1615  
#5 0x559536c69554 in lowset\_  
at /home/alfredo/fluprogfor.2021.2/lowneumvax/lowset.f:295  
#6 0x559536c06acb in flinit\_  
at /home/alfredo/fluprogfor.2021.2/kaskadmvax/flinit.f:175  
#7 0x559536ac18b5 in flukam\_  
at /home/alfredo/fluprogfor/mainmvax/flukam.f:3743  
#8 0x5595366ab4a9 in fluka  
at /home/alfredo/fluprogfor.2021.2/mainmvax/fluka.f:318  
#9 0x5595366ab4a9 in main  
at /home/alfredo/fluprogfor.2021.2/mainmvax/(USFLMD):23

Any suggestions why this happens?

Thank you very much in advance.

---

<div class="post-metadata">

**Author:** ![ceruttif](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/ceruttif/32/23_2.png) [@ceruttif](https://fluka-forum.web.cern.ch/u/ceruttif)\
**Post date:** [27 July 2021 12:34 UTC](https://fluka-forum.web.cern.ch/t/fortran-runtime-error-substring-out-of-bounds/2078/2 "2021-07-27T12:34:04Z")

</div>

Hallo, apparently you are not using the [official CERN version](https://fluka.cern/) of FLUKA that is supported on this forum.

---

<div class="post-metadata">

**Author:** ![rversaci](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/r/cc9497/32.png) [@rversaci](https://fluka-forum.web.cern.ch/u/rversaci)\
**Post date:** [27 August 2021 06:58 UTC](https://fluka-forum.web.cern.ch/t/fortran-runtime-error-substring-out-of-bounds/2078/3 "2021-08-27T06:58:40Z")

</div>


