📄 ne_nemesisi.h
字号:
/* * Copyright (c) 1998 Sandia Corporation. Under the terms of Contract * DE-AC04-94AL85000 with Sandia Corporation, the U.S. Governement * retains certain rights in this software. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * * * Neither the name of Sandia Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * *//*==================================================================== * ------------------------ * | CVS File Information | * ------------------------ * * $RCSfile: ne_nemesisI.h,v $ * * $Author: gdsjaar $ * * $Date: 2008/02/20 20:26:58 $ * * $Revision: 1.2 $ * * $Name: $ *====================================================================*//**************************************************************************** * This file contains prototypes for the functions found in the NEMESIS * library. ****************************************************************************/#ifndef _NE_NEMESIS_H#define _NE_NEMESIS_H#ifdef __cplusplusextern "C" {#endif#define NEMESIS_API_VERSION 3.09#define NEMESIS_API_VERSION_NODOT 309/*============================================================================= * Initial Information Routines *===========================================================================*/extern intne_get_init_info(int neid, /* NemesisI file ID */ int *num_proc, /* Number of processors */ int *num_proc_in_f, /* Number of procs in this file */ char *ftype );extern intne_put_init_info(int neid, /* NemesisI file ID */ int num_proc, /* Number of processors */ int num_proc_in_f, /* Number of procs in this file */ char *ftype );extern intne_get_init_global(int neid, /* NemesisI file ID */ int *num_nodes_g, /* Number of global FEM nodes */ int *num_elems_g, /* Number of global FEM elements */ int *num_elem_blks_g, /* Number of global elem blocks */ int *num_node_sets_g, /* Number of global node sets */ int *num_side_sets_g /* Number of global side sets */ );extern intne_put_init_global(int neid, /* NemesisI file ID */ int num_nodes_g, /* Number of global FEM nodes */ int num_elems_g, /* Number of global FEM elements */ int num_elem_blks_g, /* Number of global elem blocks */ int num_node_sets_g, /* Number of global node sets */ int num_side_sets_g /* Number of global side sets */ );/*============================================================================= * Loadbalance Parameter Routines *===========================================================================*/extern intne_get_loadbal_param(int neid, /* NetCDF/Exodus file ID */ int *num_int_nodes, /* Number of internal FEM nodes */ int *num_bor_nodes, /* Number of border FEM nodes */ int *num_ext_nodes, /* Number of external FEM nodes */ int *num_int_elems, /* Number of internal FEM elems */ int *num_bor_elems, /* Number of border FEM elems */ int *num_node_cmaps, /* Number of nodal comm maps */ int *num_elem_cmaps, /* Number of elemental comm maps */ int processor /* Processor ID */ );extern intne_put_loadbal_param(int neid, /* NemesisI file ID */ int num_int_nodes, /* Number of internal FEM nodes */ int num_bor_nodes, /* Number of border FEM nodes */ int num_ext_nodes, /* Number of external FEM nodes */ int num_int_elems, /* Number of internal FEM elems */ int num_bor_elems, /* Number of border FEM elems */ int num_node_cmaps,/* Number of nodal comm maps */ int num_elem_cmaps,/* Number of elemental comm maps */ int processor /* Processor ID */ );extern intne_put_loadbal_param_cc(int neid, /* NetCDF/Exodus file ID */ int *num_int_nodes, /* Number of internal node IDs */ int *num_bor_nodes, /* Number of border node IDs */ int *num_ext_nodes, /* Number of external node IDs */ int *num_int_elems, /* Number of internal elem IDs */ int *num_bor_elems, /* Number of border elem IDs */ int *num_node_cmaps, /* Number of nodal comm maps */ int *num_elem_cmaps /* Number of elem comm maps */ );/*============================================================================= * NS, SS & EB Global Parameter Routines *===========================================================================*/extern intne_get_ns_param_global(int neid, /* NetCDF/Exodus file ID */ int *ns_ids_glob, /* Global IDs of node sets */ int *ns_n_cnt_glob, /* Count of nodes in node sets */ int *ns_df_cnt_glob /* Count of dist. factors in ns */ );extern intne_put_ns_param_global(int neid, /* NemesisI file ID */ int *global_ids, /* Vector of global node-set IDs */ int *global_n_cnts, /* Vector of node counts in */ /* node-sets */ int *global_df_cnts /* Vector of dist factor */ /* counts in node-sets */ );extern intne_get_ss_param_global(int neid, /* NetCDF/Exodus file ID */ int *ss_ids_glob, /* Global side-set IDs */ int *ss_s_cnt_glob, /* Global side count */ int *ss_df_cnt_glob /* Global dist. factor count */ );extern intne_put_ss_param_global(int neid, /* NemesisI file ID */ int *global_ids, /* Vector of global side-set IDs */ int *global_el_cnts, /* Vector of element/side */ /* counts in each side set */ int *global_df_cnts /* Vector of dist. factor */ /* counts in each side set */ );extern intne_get_eb_info_global(int neid, /* NemesisI file ID */ int *el_blk_ids, /* Vector of global element IDs */ int *el_blk_cnts /* Vector of global element counts */ );extern intne_put_eb_info_global(int neid, /* NemesisI file ID */ int *el_blk_ids, /* Vector of global element IDs */ int *el_blk_cnts /* Vector of global element counts */ );/*============================================================================= * NS, SS & EB Subset Routines *===========================================================================*/extern intne_get_n_side_set(int neid, /* NetCDF/Exodus file ID */ int side_set_id, /* Side-set ID to read */ int start_side_num, /* Starting element number */ int num_sides, /* Number of sides to read */ int *side_set_elem_list, /* List of element IDs */ int *side_set_side_list /* List of side IDs */ );extern intne_put_n_side_set(int neid, /* NetCDF/Exodus file ID */ int side_set_id, /* Side-set ID to write */ int start_side_num, /* Starting element number */ int num_sides, /* Number of sides to write */ int *side_set_elem_list, /* List of element IDs */ int *side_set_side_list /* List of side IDs */ );extern intne_get_n_side_set_df(int neid, /* NetCDF/Exodus file ID */ int side_set_id, /* Side-set ID */ int start_num, /* Starting df number */ int num_df_to_get, /* Number of df's to read */ void *side_set_df /* Distribution factors */ );extern intne_put_n_side_set_df(int neid, /* NetCDF/Exodus file ID */ int side_set_id, /* Side-set ID */ int start_num, /* Starting df number */ int num_df_to_get, /* Number of df's to write */ void *side_set_df /* Distribution factors */ );extern intne_get_n_node_set(int neid, /* NetCDF/Exodus file ID */ int node_set_id, /* Node set ID */ int start_node_num, /* Node index to start reading at */ int num_node, /* Number of nodes to read */ int *node_set_node_list /* List of nodes in node set */ );extern intne_put_n_node_set(int neid, /* NetCDF/Exodus file ID */ int node_set_id, /* Node set ID */ int start_node_num, /* Node index to start writing at */ int num_node, /* Number of nodes to write */ int *node_set_node_list /* List of nodes in node set */ );extern intne_get_n_node_set_df(int neid, /* NetCDF/Exodus file ID */ int node_set_id, /* Node-set ID */ int start_num, /* Starting df number */ int num_df_to_get, /* Number of df's to read */ void *node_set_df /* Distribution factors */ );extern intne_put_n_node_set_df(int neid, /* NetCDF/Exodus file ID */ int node_set_id, /* Node-set ID */ int start_num, /* Starting df number */ int num_df_to_get, /* Number of df's to write */ void *node_set_df /* Distribution factors */ );extern intne_get_n_coord(int neid, /* NetCDF/Exodus file ID */ int start_node_num, /* Starting position to read from */ int num_nodes, /* Number of coords to read */ void *x_coor, /* Vector of X coordinates */ void *y_coor, /* Vector of Y coordinates */ void *z_coor /* Vector of Z coordinates */ );extern int
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -