From b8a7e571d513f4eeb368ec0b48398b5f74c2e5f9 Mon Sep 17 00:00:00 2001 From: mlee03 Date: Fri, 24 May 2024 13:05:19 -0400 Subject: [PATCH] UNTRACKED FILE! --- tools/libfrencutils_acc/globals_acc.h | 71 +++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 tools/libfrencutils_acc/globals_acc.h diff --git a/tools/libfrencutils_acc/globals_acc.h b/tools/libfrencutils_acc/globals_acc.h new file mode 100644 index 00000000..20a44514 --- /dev/null +++ b/tools/libfrencutils_acc/globals_acc.h @@ -0,0 +1,71 @@ +/*********************************************************************** + * GNU Lesser General Public License + * + * This file is part of the GFDL FRE NetCDF tools package (FRE-NCTools). + * + * FRE-NCtools is free software: you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or (at + * your option) any later version. + * + * FRE-NCtools is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FRE-NCTools. If not, see + * . + **********************************************************************/ +#ifndef GLOBALS_ACC_H_ +#define GLOBALS_ACC_H_ +#include "globals.h" +#include "parameters.h" + +typedef struct { + int nxcells; + int *input_parent_lon_indices; + int *input_parent_lat_indices; + int *output_parent_lon_indices; + int *output_parent_lat_indices; + double *xcell_area; + double *dcentroid_lon; + double *dcentroid_lat; +} Xinfo_per_input_tile; + +typedef struct { + size_t nxcells; + int *input_parent_lon_indices; + int *input_parent_lat_indices; + int *output_parent_lon_indices; + int *output_parent_lat_indices; + int *input_parent_tile; + double *dcentroid_lon; + double *dcentroid_lat; + Xinfo_per_input_tile *per_intile; + double *xcell_area; + double *weight; + int *index; + char remap_file[STRING]; + int file_exist; +} Xgrid_config; + +//Will be removed +typedef struct { + double *lon_min; + double *lon_max; + double *lat_min; + double *lat_max; + double *lon_cent; + int *n_vertices; + double **lon_vertices; + double **lat_vertices; + double *recomputed_area; + double *centroid_lon; + double *centroid_lat; + int skip_cells; + +} Grid_cells_struct_config; + + +#endif