Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Fortran 分配状态4205_Fortran - Fatal编程技术网

Fortran 分配状态4205

Fortran 分配状态4205,fortran,Fortran,当我分配一个数组时,stat是4205 REAL, ALLOCATE :: globbuf(:) ALLOCATE(globbuf(allocSize, stat=test) test的值为4205。stat有什么问题?stat=中的任何非零值的含义完全取决于所使用的编译器。您需要指定详细信息。但是,如果不使用stat=,您可能会得到一条关于中止的有用消息(或者可以使用errmsg=)。代码片段中至少有两个错误。请确保使用可编译代码进行询问。

当我分配一个数组时,stat是4205

REAL, ALLOCATE :: globbuf(:)
ALLOCATE(globbuf(allocSize, stat=test)

test
的值为4205。stat有什么问题?

stat=中的任何非零值的含义完全取决于所使用的编译器。您需要指定详细信息。但是,如果不使用
stat=
,您可能会得到一条关于中止的有用消息(或者可以使用
errmsg=
)。代码片段中至少有两个错误。请确保使用可编译代码进行询问。