⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ad_end.c

📁 fortran并行计算包
💻 C
字号:
/* -*- Mode: C; c-basic-offset:4 ; -*- *//*  *   Copyright (C) 1997 University of Chicago.  *   See COPYRIGHT notice in top-level directory. */#include "adio.h"#include "adio_extern.h"#ifdef ROMIO_INSIDE_MPICH2#include "mpiimpl.h"#endifvoid ADIO_End(int *error_code){    ADIOI_Flatlist_node *curr, *next;    ADIOI_Datarep *datarep, *datarep_next;    /*    FPRINTF(stderr, "reached end\n"); *//* delete the flattened datatype list */    curr = ADIOI_Flatlist;    while (curr) {	if (curr->blocklens) ADIOI_Free(curr->blocklens);	if (curr->indices) ADIOI_Free(curr->indices);	next = curr->next;	ADIOI_Free(curr);	curr = next;    }    ADIOI_Flatlist = NULL;/* free file and info tables used for Fortran interface */    if (ADIOI_Ftable) ADIOI_Free(ADIOI_Ftable);#ifndef HAVE_MPI_INFO    if (MPIR_Infotable) ADIOI_Free(MPIR_Infotable);#endif/* free the memory allocated for a new data representation, if any */    datarep = ADIOI_Datarep_head;    while (datarep) {        datarep_next = datarep->next;#ifdef MPICH2        MPIU_Free(datarep->name);#else        ADIOI_Free(datarep->name);#endif        ADIOI_Free(datarep);        datarep = datarep_next;    }    *error_code = MPI_SUCCESS;}/* This is the delete callback function associated with   ADIO_Init_keyval when MPI_COMM_WORLD is freed */int ADIOI_End_call(MPI_Comm comm, int keyval, void *attribute_val, void		  *extra_state){    int error_code;    ADIOI_UNREFERENCED_ARG(comm);    ADIOI_UNREFERENCED_ARG(keyval);    ADIOI_UNREFERENCED_ARG(attribute_val);    ADIOI_UNREFERENCED_ARG(extra_state);    ADIO_End(&error_code);    return error_code;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -