Skip to content

Commit

Permalink
Move vector regrid stuff into its own files (to reduce clutter in Mes…
Browse files Browse the repository at this point in the history
…h regrid file).
  • Loading branch information
oehmke committed Aug 8, 2023
1 parent 733d1c8 commit 1ed0bae
Show file tree
Hide file tree
Showing 4 changed files with 772 additions and 653 deletions.
66 changes: 66 additions & 0 deletions src/Infrastructure/Mesh/include/ESMCI_Mesh_Vector_Regrid.h
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
Loading

0 comments on commit 1ed0bae

Please sign in to comment.