Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

DATA_ASSIMILATION_SCRIPT in CESM/DART fails with "Bad fd number" when using tcsh

jurymark

mark
New Member
Dear all,
I am trying to run DART data assimilation within CESM on Ubuntu 22.04, but I encounter a shell error when specifying a tcsh assimilation script.
When I run ./case.submit , I get:

Running /root/cases/fwscdart/assimilate.csh
/bin/sh: 1: Syntax error: Bad fd number
ERROR: /root/cases/fwscdart/assimilate.csh /root/cases/fwscdart 0 >& /root/output/fwscdart/run/da.log.251014-222608 FAILED, cat /root/output/fwscdart/run/da.log.251014-222608


But this file does not exist.

I set
./xmlchange DATA_ASSIMILATION_SCRIPT="/bin/tcsh /root/cases/fwscdart/assimilate.csh"
or create a new bash with
#!/bin/bash
/bin/tcsh /root/cases/fwscdart/assimilate.csh "$@"

But neither of them works.
This seems to be related to my operating system.
echo $SHELL
/bin/bash

So I tried changing SHELL to /bin/tcsh, but I still get the same error; it seems Bash is still being used.

Which part of the cime code should I modify? Thank you in advance for guidance!

Mark
 
Top