Skip to content

Commit

Permalink
UNTRACKED FILE!
Browse files Browse the repository at this point in the history
  • Loading branch information
mlee03 authored and mlee03 committed May 24, 2024
1 parent 30894a0 commit b8a7e57
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions tools/libfrencutils_acc/globals_acc.h
Original file line number Diff line number Diff line change
@@ -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
* <http://www.gnu.org/licenses/>.
**********************************************************************/
#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

0 comments on commit b8a7e57

Please sign in to comment.