FILE NAME WITH SOME SPACE *ERROR in u_calloc

Hi,

Just want to expose this simply to fix Exit code.16

A wrong inp file name (Name with space caracter) delivers an error with the dark message:

*ERROR in u_calloc: error allocating memory
variable=au1, file=mafillsmmain.c, line=183, num=1081231458, size=8

Exit code: 16

One can spent a lot of time looking for a mistake in the file content when a simple warning (wrong file name) would be enough.

Hope this help others and a “pre-launch” warning can be set up in the code.

Regards

@Disla could the failure be something related to your environment or a specific data card in your job file.

In window 10 I can run job with a space in the filename by quote the filename like this

ccx_2.23 "job name"

and in Linux I can even run a job with a (space character) as filename by putting an escape character in front of the filename like this, and get the following out files.

../src/ccx_2.23 \ 


drwxrwxr-x 2 xxx xxx     4096 okt 22 18:09  .
drwxrwxr-x 8 xxx xxx     4096 okt 22 18:06  ..
-rw-rw-r-- 1 xxx xxx        0 okt 22 18:09 ' .12d'
-rw-rw-r-- 1 xxx xxx      274 okt 22 18:12  .cvg
-rw-rw-r-- 1 xxx xxx        0 okt 22 18:09  .dat
-rw-rw-r-- 1 xxx xxx 99191833 okt 22 18:12 ' .frd'
-rwxr-xr-x 1 xxx xxx 27542686 okt 22 18:07 ' .inp'
-rw-rw-r-- 1 xxx xxx      170 okt 22 18:12  .sta