yt_finalize – Finalize¶
yt_finalize¶
int yt_finalize();
Usage: Clean up embedded Python. Each rank must call this API when terminating our program.
Return:
YT_SUCCESSorYT_FAIL
Example¶
if ( yt_finalize() != YT_SUCCESS ){
fprintf( stderr, "ERROR: yt_finalize() failed!\n" );
exit( EXIT_FAILURE );
}