Dear HYCOM team,
I'm currently running into an error when executing the model:
I've already tested different time step values, including very low ones, but the error persists. I'm beginning to suspect that the issue might be related to the rmu files, although I'm not entirely sure what could be wrong with them.
To help diagnose the problem, I'm attaching a few relevant files in case you're able to take a look and provide any guidance.
Thank you very much in advance for your support.
Best regards,
Dear Alan,
Thanks a lot for your detailed response.
I’ve followed your suggestions, but unfortunately I’m still encountering the same issue. I set batrop to 6.25 and baclin to 200, and I also disabled the flags you mentioned (tides, nestfq, bnstfq, and lbflag), but the model still crashes. It doesn't fail immediately, it runs until hour 11 of the first simulation day, and then crashes with the same error:
I’m attaching the blkdat.input file and the corresponding log in case they provide further insight.
Thanks again for your support.
Alfredo.
Dear Alan,
Thanks again for your continued support.
I had actually tested the different configurations you suggested earlier, but only shared the details of the last run in my previous message. To be thorough, I re-ran all four cases using the time steps you mentioned (baclin = 180.0, batrop = 6.428571), and here are the results:
Case (a) — tides off: model crashed at hour 2.
Case (b) — tides + nestfq off: model ran for 16 hours.
Case (c) — tides + nestfq + bnstfq + lbflag off: this time it also ran for 16 hours (previously crashed at hour 11).
Case (d) — tides off + bnstfq off: also ran for 16 hours.
In all cases, the crash occurred with the same error:
Could you please confirm if I’m disabling tides correctly? I’ve been setting
Thanks again for your help,
Dear Alan,
Just a quick follow-up regarding the issue.
While waiting for a response, I’ve continued troubleshooting on my end. I tried running the same region using an earlier version of the model, specifically, a version prior to the inclusion of the newer flags such as hybthk, cbtidc, and mstrcr.
I used a similar blkdat.input configuration I shared at the beginning of this thread (and I'm reattaching it here for reference). To my surprise, the model successfully completed a full one-month simulation without crashing.
Since the configuration is practically the same, this makes me suspect that the issue might be related to something introduced in the newer model versions, possibly a bug.
I understand that the forum encourages using the most up-to-date version of HYCOM for support, but given this result, I’d appreciate your advice on how to proceed. Is this a known issue? Would you recommend sticking with the earlier version for now, or is there a workaround with the latest version that I could try?
Thanks again for your guidance and time,
Alfredo.
Dear Alan,
Thanks again for your continued support.
I’ve now tested two different configurations using the latest version of the model and setting mlflag = 1 (KPP), as you suggested. Here are the results:
Test A
→ Crashed at hour 2 of the first simulation day.
Test B
→ Crashed at hour 4 of the first simulation day.
Both tests crash with the same error
Thanks again for your help — I truly appreciate your time and guidance.
Best regards,
Dear Alan,
Thank you again for the recommendations.
I recompiled the model with the flags you suggested:
After cleaning all .o and .mod files, I ran both Test A and Test B again, using both momentum advection schemes (momtyp = 2 and momtyp = 4), and with tides turned off. Unfortunately, both runs still crash after a few of simulation hours with the same neg. dp error. I’m attaching the log files from tests, in case it helps diagnose what’s happening.
If you recommend using the configuration from Test B (momtyp = 2), I’d be happy to follow your guidance to get the model running successfully with that setup.
Thanks once again for your time and help, I truly appreciate it.
Best regards,
Alfredo
I have compressed the requested directories into a tar.gz archive. You can download it here:
 http://187.251.135.214:6300/hycom/
Please let me know if you need any additional files or information.
Thank you very much for your help.
Best regards,
Alfredo
Thanks for your previous message. I followed your instructions: I modified Make.csh to use the 17-term equation of state, added the flags, removed all the .o and .mod files, and recompiled from scratch.
Unfortunately, the model still crashes after a few simulated hours. I’m attaching the updated log file in case that helps you spot the issue.
Also, thank you very much for the attention and time you’ve given me throughout this process. I really appreciate your help in trying to get this running.
Best regards,
Alfredo.
Hi Alan,
 Thanks again for your help. I already tried using 'proffq'=0.0 with the current compilation, but unfortunately it still didn't work, the model crashes after a few hours as before. Â
I'm using the intelIFC-impi-sm-relo_mpi config file, which sets the compiler as:
Running mpiifort --version returns:
I've attached the full config file for your reference. Do you see any issue when the config file and the compiler version before trying to compile the latest code?
Thanks again
Dear Alan,
I am pleased to inform you that the model is now running successfully after recompiling with the configuration file you provided. I sincerely appreciate your guidance in resolving the previous issue.
I am currently encountering a problem when attempting to convert the outputs from one of these new runs to NetCDF format. The tools report a mismatch between the bathymetries; however, I have verified that the bathymetry files used in the model run are indeed the same.
Could you please confirm whether it is necessary to recompile HYCOM-tools using the same configuration file (generic-intel-relo_mpi or similar) that was used to compile HYCOM-src?
Thank you once again for your continued support.
Best regards,
Alfredo.
I followed your suggestion and ran hycom_archive_sea_ok both against the regional.depth.a file in the experiment scratch directory and against the regional.depth.a file used by the NetCDF conversion program (archive/ncdf_2010_hindcast).
Both checks return:
However, when I run the NetCDF conversion, I still get:
Given that the depth files seem identical, I am wondering if this could be related to how the NetCDF conversion tools were compiled, rather than to the files themselves.
Thank you very much for your guidance and patience, you were totally right about the wrong sizes, but it was not about idm or jdm, it was kdm. The problem was not with the bathymetry files themselves, they were indeed identical, as we had confirmed, but with the EXPT.src being read, which had a different number of vertical levels defined.
This mismatch was driving me crazy, especially after the earlier compilation problems, and I overlooked it for quite some time. After correcting the vertical levels, the NetCDF conversion works correctly.
I really appreciate your continued support in helping me work through these issues.
Best regards,
Alfredo