-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move vector regrid stuff into its own files (to reduce clutter in Mes…
…h regrid file).
- Loading branch information
Showing
4 changed files
with
772 additions
and
653 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
src/Infrastructure/Mesh/include/ESMCI_Mesh_Vector_Regrid.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// $Id$ | ||
// | ||
// Earth System Modeling Framework | ||
// Copyright 2002-2022, University Corporation for Atmospheric Research, | ||
// Massachusetts Institute of Technology, Geophysical Fluid Dynamics | ||
// Laboratory, University of Michigan, National Centers for Environmental | ||
// Prediction, Los Alamos National Laboratory, Argonne National Laboratory, | ||
// NASA Goddard Space Flight Center. | ||
// Licensed under the University of Illinois-NCSA License. | ||
// | ||
//============================================================================== | ||
|
||
//------------------------------------------------------------------------------ | ||
// INCLUDES | ||
//------------------------------------------------------------------------------ | ||
|
||
#ifndef ESMCI_Mesh_Vector_Regrid_H | ||
#define ESMCI_Mesh_Vector_Regrid_H | ||
|
||
#include <vector> | ||
|
||
#include "ESMCI_Macros.h" | ||
#include "ESMCI_F90Interface.h" | ||
#include "ESMCI_LogErr.h" | ||
#include "ESMCI_VM.h" | ||
#include "VM/include/ESMC_VM.h" | ||
#include "ESMCI_Array.h" | ||
|
||
#include <limits> | ||
#include <string> | ||
#include <ostream> | ||
#include <iterator> | ||
#include <iostream> | ||
#include <vector> | ||
|
||
#include "Mesh/include/ESMCI_Mesh.h" | ||
#include "ESMCI_CoordSys.h" | ||
#include <Mesh/include/Legacy/ESMCI_SparseMsg.h> | ||
#include "Mesh/include/Legacy/ESMCI_ParEnv.h" | ||
#include <Mesh/include/Legacy/ESMCI_Exception.h> | ||
|
||
//----------------------------------------------------------------------------- | ||
// leave the following line as-is; it will insert the cvs ident string | ||
// into the object file for tracking purposes. | ||
// static const char *const version = "$Id$"; | ||
//----------------------------------------------------------------------------- | ||
|
||
using namespace ESMCI; | ||
|
||
// TODO: move below | ||
void get_vec_dims_for_vectorRegrid(ESMCI::Array &array, int &num_vec_dims, int *vec_dims_undist_seqind); | ||
|
||
|
||
|
||
|
||
void create_vector_sparse_mat_from_reg_sparse_mat(int num_entries, int *iientries, double *factors, | ||
int num_vec_dims, int *src_vec_dims_undist_seqind, int *dst_vec_dims_undist_seqind, | ||
Mesh *src_mesh, PointList *src_pl, | ||
Mesh *dst_mesh, PointList *dst_pl, | ||
int &num_entries_vec, int *&iientries_vec, double *&factors_vec); | ||
|
||
|
||
|
||
|
||
|
||
#endif // ESMCI_Mesh_Vector_Regrid_H |
Oops, something went wrong.