# ROMS.jl error with invalid dimension parameter

**URL:** <https://discourse.julialang.org/t/roms-jl-error-with-invalid-dimension-parameter/115468>\
**Category:** Geo\
**Created:** [June 11, 2024, 10:00am UTC](https://discourse.julialang.org/t/roms-jl-error-with-invalid-dimension-parameter/115468 "2024-06-11T10:00:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Unai\_Ganzedo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/unai_ganzedo/32/209896_2.png) [@Unai\_Ganzedo](https://discourse.julialang.org/u/Unai_Ganzedo)\
**Post date:** [June 11, 2024, 10:00am UTC](https://discourse.julialang.org/t/roms-jl-error-with-invalid-dimension-parameter/115468/1 "2024-06-11T10:00:06Z")

</div>

Hi; I have a question regarding roms.in. I have followed the instructions and I have all the files prepared but when I launch the roms, I get this error..I have tried to search for it but I can’t find it, could you send me the modis.in file for this example.  
Thank you and sorry for the inconvenience.  
Unai  
ping @Alexander-Barth Barth

* * *

## Model Input Parameters: ROMS/TOMS version 4.2 Monday - June 10, 2024 - 10:29:18 AM

READ\_PHYPAR - Invalid dimension parameter, nBCfiles = -1  
KeyWord ‘NBCFILES’ unread or misssing from input script ‘roms.in’.  
Found Error: 04 Line: 211 Source: ROMS/Utility/inp\_par.F  
Found Error: 04 Line: 125 Source: ROMS/Drivers/nl\_roms.h, ROMS\_initialize

Elapsed wall CPU time for each process (seconds):

Found Error: 04 Line: 85 Source: ROMS/Utility/close\_io.F, close\_file\_nf90  
Found Error: 04 Line: 85 Source: ROMS/Utility/close\_io.F, close\_file\_nf90  
Found Error: 04 Line: 85 Source: ROMS/Utility/close\_io.F, close\_file\_nf90  
Found Error: 04 Line: 85 Source: ROMS/Utility/close\_io.F, close\_file\_nf90

ROMS/TOMS - Output NetCDF summary for Grid 01:  
Found Error: 04 Line: 413 Source: ROMS/Utility/close\_io.F, close\_out

ROMS/TOMS - I/O error … exit\_flag: 4

ERROR: I/O related problem.  
ERROR STOP

Error termination. Backtrace:  
#0 0x7abf4ac23960 in ???  
#1 0x7abf4ac244d9 in ???  
#2 0x7abf4ac25b47 in ???  
#3 0x64191b33c9c6 in ???  
#4 0x7abf4a829d8f in \_\_libc\_start\_call\_main  
at ../sysdeps/nptl/libc\_start\_call\_main.h:58  
#5 0x7abf4a829e3f in \_\_libc\_start\_main\_impl  
at ../csu/libc-start.c:392  
#6 0x64191b33ca14 in ???  
#7 0xffffffffffffffff in ???

 ![image](https://global.discourse-cdn.com/julialang/original/3X/d/9/d9be82c5754f30abe3433cdfd1a48811df081b44.png)

---

<div class="post-metadata">

**Author:** ![Alexander-Barth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alexander-barth/32/3692_2.png) [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Post date:** [June 11, 2024, 11:49am UTC](https://discourse.julialang.org/t/roms-jl-error-with-invalid-dimension-parameter/115468/2 "2024-06-11T11:49:38Z")

</div>

Does it work if you add these lines manually to roms.in ?

```julia
NBCFILES == 1
NCLMFILES == 1

```

They correspond to the number of files with boundary conditions and climatology data.

See also: [Tutorial · ROMS.jl](https://alexander-barth.github.io/ROMS.jl/dev/#ROMS-model-domain-configuration)
