Visible to Intel only — GUID: GUID-20054B52-324E-43B0-9747-9A0C3617F7B6
Visible to Intel only — GUID: GUID-20054B52-324E-43B0-9747-9A0C3617F7B6
vslSaveStreamF
Writes random stream descriptive data, including stream state, to binary file.
errstatus = vslsavestreamf( stream, fname )
- mkl.fi, mkl_vsl.f90
Name |
Type |
Description |
---|---|---|
stream |
TYPE(VSL_STREAM_STATE), INTENT(IN) |
Random stream to be written to the file |
fname |
CHARACTER(*), INTENT(IN) |
File name specified as a C-style null-terminated string |
Name |
Type |
Description |
---|---|---|
errstatus |
INTEGER |
Error status of the operation |
The vslSaveStreamF function writes the random stream descriptive data, including the stream state, to the binary file. Random stream descriptive data is saved to the binary file with the name fname. The random stream stream must be a valid stream created by vslNewStream-like or vslCopyStream-like service routines. If the stream cannot be saved to the file, errstatus has a non-zero value. The random stream can be read from the binary file using the vslLoadStreamF function.
- VSL_ERROR_OK, VSL_STATUS_OK
-
Indicates no error, execution is successful.
- VSL_ERROR_NULL_PTR
-
Either fname or stream is a NULL pointer.
- VSL_RNG_ERROR_BAD_STREAM
-
stream is not a valid random stream.
- VSL_RNG_ERROR_FILE_OPEN
-
Indicates an error in opening the file.
- VSL_RNG_ERROR_FILE_WRITE
-
Indicates an error in writing the file.
- VSL_RNG_ERROR_FILE_CLOSE
-
Indicates an error in closing the file.
- VSL_ERROR_MEM_FAILURE
-
System cannot allocate memory for internal needs.