#include <iostream>
#include <fstream>
#include <string>
#include <list>
#include <map>
#include <sstream>
#include <iomanip>
#include <vector>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <algorithm>
#include "TRAIL_UnixUtils.H"
#include "mpi.h"
#include "GEM.H"
#include "TRAIL.H"
#include "roccom.h"
Go to the source code of this file.
Functions | |
COM_EXTERN_MODULE (Rocface) | |
COM_EXTERN_MODULE (Rocout) | |
COM_EXTERN_MODULE (Rocin) | |
COM_EXTERN_MODULE (Rocblas) | |
COM_EXTERN_MODULE (Rocsurf) | |
COM_EXTERN_MODULE (Rocmop) | |
COM_EXTERN_MODULE (Rocprop) | |
void | TRAIL_Debug (GEM_Partition &gp) |
std::string | TRAIL_TimeString (double t) |
double | TRAIL_TimeString (const std::string &ts) |
void | TRAIL_GetRocstarDumpStrings (const std::string &filename, std::string &wname, std::string ×tring, std::string &rankstring) |
int | TRAIL_ExtractPanes (const std::string &window_name, const std::string &attribute_name, int attribute_value, std::vector< int > &pane_id) |
int | TRAIL_GetPanelAttribute (const std::string &window_name, const std::string &attribute_name, const std::string &qual_name, int qualval, std::vector< int > &attvec) |
int | TRAIL_GetPanelAttribute (const std::string &window_name, const std::string &attribute_name, std::vector< int > &attvec) |
int | TRAIL_UniqueAcrossProcs (std::vector< int > &input_data, std::vector< int > &output_data, MPI_Comm communicator) |
int | TRAIL_Search_Block_Structured_Pool (std::vector< std::vector< int > > &search_extent, std::vector< std::vector< std::vector< int > > > &extent_pool, std::vector< std::vector< std::vector< int > > > &neighbor_extent, std::vector< int > &neighbors) |
Given an array of ranges: search_extent[nd][2] and one array of array of ranges: partition_extent[number_of_partitions][nd][2] Provide an array of range arrays: neighbor_extent[number_of_neighbors][nd][2] and a processor list: neighbors[number_of_neighbors]. More... | |
int | TRAIL_Get_Block_Structured_Neighbors (std::vector< std::vector< int > > &local_extent, std::vector< std::vector< int > > &global_extent, std::vector< std::vector< std::vector< int > > > &extent_pool, std::vector< std::vector< int > > &ghost_extent, std::vector< std::vector< std::vector< int > > > &neighbor_extent, std::vector< int > &neighbors) |
Given two arrays of ranges: global_extent[nd][2] local_extent[nd][2] an extent pool: extent_pool[npool][nd][2] provide the neighboring extent pool: neighbor_extent[nneighbors][nd][2] and a neighbor id list: neighbors[nneighbors]. More... | |
template<typename T > | |
void | TRAIL_Copy2Attribute (const std::string &aname, const std::vector< T > &container, int pane_id, int asize=1) |
template<typename T > | |
void | TRAIL_SetAttribute (const std::string &aname, int pane_id, T &value) |
template<typename T > | |
void | TRAIL_Copy2Attribute (const std::string &aname, const std::vector< std::vector< T > > &container, int pane_id) |
int | TRAIL_SurfaceMesh2Window (const std::string &wname, int pane_id, Mesh::NodalCoordinates &coords, Mesh::Connectivity &conn) |
Creates a window from a Mesh object. (copies data) More... | |
int | TRAIL_UnstructuredMesh2Pane (const std::string &wname, int pane_id, Mesh::UnstructuredMesh &mesh, SolnMetaData &smdv, std::vector< std::vector< double > > &soln_data, int verblevel) |
Creates a window from a Mesh object. (copies data) More... | |
int | TRAIL_FD2FE_WinCreate (const std::string &wname, const std::string &outwname, std::ostream *ouf) |
Adds ghost zones for block structured meshes to close gaps in the interface surface mesh. More... | |
template<typename T > | |
int | TRAIL_Att2Vec (const std::string &att, int pane_id, std::vector< T > &dest) |
int | TRAIL_FE2FD_Transfer (const std::string &fewin, const std::string &fdwin, const std::string &attlist, MPI_Comm communicator, std::ostream *ouf) |
int | TRAIL_Add_Attributes (const std::string &srcwin, const std::string &destwin, const std::vector< std::string > &atts) |
int | TRAIL_FD2FE_Transfer (const std::string &srcwin, const std::string &destwin, const std::string &attlist, std::ostream *ouf) |
int | TRAIL_FD2FE_WinCreate2 (const std::string &wname, const std::string &outwname, std::ostream *ouf) |
Takes as input a block structured FD grid. More... | |
void | TRAIL_Window2UnstructuredMesh (const std::string &wname, std::vector< Mesh::UnstructuredMesh > &meshes, std::vector< SolnMetaData > &smdv, std::vector< std::vector< std::vector< double > > > &soln_data, int verblevel, bool no_ghost) |
void | TRAIL_HDF2Window (const std::string &fname, const std::string &wname, int verb) |
void | TRAIL_GetWindowSolnMetaData (const std::string &wname, std::vector< SolnMetaData > &smdv, int verblevel) |
void | TRAIL_GetWindowSolnData (const std::string &wname, std::vector< std::vector< std::vector< double > > > &soln_data, std::vector< SolnMetaData > &smdv, int verblevel) |
void | TRAIL_File2Window (const std::string &fname, const std::string &wname, std::vector< int > &bcflags, MPI_Comm comm, bool apply_disp, bool all, bool with_ghost) |
void | TRAIL_MergeRocinFiles (const std::string &srcname, const std::string &trgname, const std::string &path, double t, unsigned int np, std::ostream *ouf) |
void | TRAIL_CreateRobustFC (const std::string &wname, const std::string &path) |
void | TRAIL_CreateRobustFC_old (const std::string &wname, const std::string &path) |
void | TRAIL_AutoSurfer (const std::string &src, const std::string &trg, const std::string &srcpath, const std::string &trgpath, const std::string &destpath, double t, MPI_Comm comm, std::ostream *ouf) |
void | TRAIL_FixRocstarData (const std::string &wname, std::ostream *ouf=NULL) |
void | TRAIL_ExtractSurf0 (const std::string &srcwin, const std::string &trgwin, std::ostream *ouf=NULL) |
bool | TRAIL_TransferSurfDataFILE (const std::string &src, const std::string &trg, const std::string &dest, const std::string &srcpath, const std::string &trgpath, const std::string &destpath, const std::string &crpath, double t, unsigned int id, MPI_Comm comm, std::ostream *ouf) |
void | TRAIL_WriteRocinControl (std::vector< int > &pane_id, const std::string &pre, int rank) |
bool | TRAIL_WriteWindow (const std::string &wname, const std::string &winpath, const std::string &cntl_name, const std::string &cntl_path, double t, unsigned int id, MPI_Comm comm, std::ostream *ouf) |
double | TRAIL_FindSourceTime (const std::string &dirpre, double t, const std::string &relpath) |
void | TRAIL_RocmopSmooth (GEM_Partition &gp, unsigned int niter) |
void | TRAIL_RocpropSmoothSurf (double *nc, unsigned int nnodes, unsigned int *ec, unsigned int nel, unsigned int *cnstr_type, unsigned int niter) |
COM_EXTERN_MODULE | ( | Rocface | ) |
COM_EXTERN_MODULE | ( | Rocout | ) |
COM_EXTERN_MODULE | ( | Rocin | ) |
COM_EXTERN_MODULE | ( | Rocblas | ) |
COM_EXTERN_MODULE | ( | Rocsurf | ) |
COM_EXTERN_MODULE | ( | Rocmop | ) |
COM_EXTERN_MODULE | ( | Rocprop | ) |
int TRAIL_Add_Attributes | ( | const std::string & | srcwin, |
const std::string & | destwin, | ||
const std::vector< std::string > & | atts | ||
) |
Definition at line 1156 of file TRAIL.C.
References COM_get_attribute(), COM_get_attribute_handle(), COM_new_attribute(), and COM_window_init_done().
Referenced by TRAIL_FD2FE_Transfer().
int TRAIL_Att2Vec | ( | const std::string & | att, |
int | pane_id, | ||
std::vector< T > & | dest | ||
) |
Definition at line 952 of file TRAIL.C.
References COM_get_array(), COM_get_attribute(), and COM_get_size().
Referenced by TRAIL_FD2FE_Transfer(), and TRAIL_FE2FD_Transfer().
void TRAIL_AutoSurfer | ( | const std::string & | src, |
const std::string & | trg, | ||
const std::string & | srcpath, | ||
const std::string & | trgpath, | ||
const std::string & | destpath, | ||
double | t, | ||
MPI_Comm | comm, | ||
std::ostream * | ouf | ||
) |
Definition at line 2544 of file TRAIL.C.
References COM_call_function(), COM_delete_window(), COM_get_attribute_handle(), COM_get_function_handle(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_set_default_communicator(), COM_UNLOAD_MODULE_STATIC_DYNAMIC, TRAIL_CD(), TRAIL_CreateRobustFC(), TRAIL_CWD(), TRAIL_File2Window(), and TRAIL_TimeString().
Referenced by TRAIL_RemeshAutoSurfer().
void TRAIL_Copy2Attribute | ( | const std::string & | aname, |
const std::vector< T > & | container, | ||
int | pane_id, | ||
int | asize = 1 |
||
) |
Definition at line 373 of file TRAIL.C.
References COM_get_array(), COM_resize_array(), and COM_set_size().
Referenced by TRAIL_FD2FE_WinCreate(), and TRAIL_FD2FE_WinCreate2().
void TRAIL_Copy2Attribute | ( | const std::string & | aname, |
const std::vector< std::vector< T > > & | container, | ||
int | pane_id | ||
) |
Definition at line 397 of file TRAIL.C.
References COM_get_array(), COM_resize_array(), and COM_set_size().
void TRAIL_CreateRobustFC | ( | const std::string & | wname, |
const std::string & | path | ||
) |
Definition at line 2515 of file TRAIL.C.
Referenced by TRAIL_AutoSurfer().
void TRAIL_CreateRobustFC_old | ( | const std::string & | wname, |
const std::string & | path | ||
) |
void TRAIL_Debug | ( | GEM_Partition & | gp | ) |
Definition at line 60 of file TRAIL.C.
References GEM_Partition::_comm, GEM_Partition::_id, GEM_Partition::_out, GEM_Partition::debug(), rank, and TRAIL_CreateDirectory().
int TRAIL_ExtractPanes | ( | const std::string & | window_name, |
const std::string & | attribute_name, | ||
int | attribute_value, | ||
std::vector< int > & | pane_id | ||
) |
Definition at line 129 of file TRAIL.C.
References COM_get_array(), COM_get_panes(), and pi.
Referenced by TRAIL_FD2FE_Transfer(), TRAIL_FD2FE_WinCreate(), TRAIL_FD2FE_WinCreate2(), and TRAIL_FE2FD_Transfer().
void TRAIL_ExtractSurf0 | ( | const std::string & | srcwin, |
const std::string & | trgwin, | ||
std::ostream * | ouf = NULL |
||
) |
Definition at line 2957 of file TRAIL.C.
References COM_clone_attribute(), COM_free_buffer(), COM_get_array(), COM_get_panes(), COM_new_window(), COM_window_init_done(), and i.
Referenced by TRAIL_TransferSurfDataFILE().
int TRAIL_FD2FE_Transfer | ( | const std::string & | srcwin, |
const std::string & | destwin, | ||
const std::string & | attlist, | ||
std::ostream * | ouf | ||
) |
Definition at line 1183 of file TRAIL.C.
References COM_get_array(), COM_get_attribute(), COM_get_attribute_handle(), COM_get_communicator(), COM_get_panes(), COM_get_sizeof(), COM_new_attribute(), COM_resize_array(), COM_window_init_done(), Mesh::BSExtent< T >::Flatten(), Mesh::BSExtent< T >::GetFlatIndices(), i, Mesh::BSExtent< T >::NNodes(), Mesh::BSExtent< T >::Overlap(), pi, rank, TRAIL_Add_Attributes(), TRAIL_Att2Vec(), TRAIL_ExtractPanes(), TRAIL_GetPanelAttribute(), and TRAIL_UniqueAcrossProcs().
int TRAIL_FD2FE_WinCreate | ( | const std::string & | wname, |
const std::string & | outwname, | ||
std::ostream * | ouf | ||
) |
Adds ghost zones for block structured meshes to close gaps in the interface surface mesh.
Needs the following data for each patch/pane: Block ID: block_id Patch ID: patch_id Local Patch Extent: local_patch_extent [istart,iend,jstart,jend,kstart,kend] (global indices for local patch extent) Global Patch Extent: global_patch_extent [istart,iend,jstart,jend,kstart,kend]
Definition at line 565 of file TRAIL.C.
References COM_get_array(), COM_get_communicator(), COM_get_panes(), COM_INTEGER, COM_new_attribute(), COM_new_window(), COM_resize_array(), COM_set_size(), Mesh::BSExtent< T >::CreateUnstructuredMesh(), Mesh::BSExtent< T >::Flatten(), Mesh::Connectivity::Flatten(), Mesh::BSExtent< T >::GetFlatIndices(), max(), Mesh::Connectivity::Nelem(), ni, Mesh::BSExtent< T >::NNodes(), pi, rank, Mesh::BSExtent< T >::Sync(), TRAIL_Copy2Attribute(), TRAIL_ExtractPanes(), TRAIL_Get_Block_Structured_Neighbors(), TRAIL_GetPanelAttribute(), TRAIL_SetAttribute(), and TRAIL_UniqueAcrossProcs().
int TRAIL_FD2FE_WinCreate2 | ( | const std::string & | wname, |
const std::string & | outwname, | ||
std::ostream * | ouf | ||
) |
Takes as input a block structured FD grid.
An FD grid is one in which the partitioning is node based instead of element based as in an FE mesh - and produces a FE representation of the mesh, including a description of the shared vertices. Attributes can then be moved back and forth between the two representations easily.
Needs the following data for each patch/pane: Block ID: block_id Patch ID: patch_id Local Patch Extent: local_patch_extent [istart,iend,jstart,jend,kstart,kend] (global indices for local patch extent) Global Patch Extent: global_patch_extent [istart,iend,jstart,jend,kstart,kend]
The output window has not transferred any of the non-mesh attributes. (Currently needs NC transferred) Produces the following data for each patch/pane: Block ID: block_id Patch ID: patch_id Local Extent: local_extent Global Extent: global_extent Shared Extent: shared_extent[local_extent1 local_extent2 .... local_extent_n] Shared Panes: shared_panes[pane1 pane2 .... pane_n]
Definition at line 1652 of file TRAIL.C.
References COM_get_array(), COM_get_attribute_handle(), COM_get_communicator(), COM_get_panes(), COM_INTEGER, COM_new_attribute(), COM_new_window(), COM_resize_array(), COM_set_size(), COM_window_init_done(), Mesh::BSExtent< T >::CreateUnstructuredMesh(), Mesh::BSExtent< T >::FindSharedNodes(), Mesh::BSExtent< T >::Flatten(), Mesh::Connectivity::Flatten(), Mesh::BSExtent< T >::GetFlatIndices(), Mesh::Connectivity::Nelem(), Mesh::BSExtent< T >::NNodes(), pi, rank, Mesh::GenericCell_2::ReOrient(), Mesh::BSExtent< T >::Sync(), Mesh::Connectivity::Sync(), Mesh::Connectivity::SyncSizes(), TRAIL_Copy2Attribute(), TRAIL_ExtractPanes(), TRAIL_GetPanelAttribute(), TRAIL_SetAttribute(), and TRAIL_UniqueAcrossProcs().
int TRAIL_FE2FD_Transfer | ( | const std::string & | fewin, |
const std::string & | fdwin, | ||
const std::string & | attlist, | ||
MPI_Comm | communicator, | ||
std::ostream * | ouf | ||
) |
Definition at line 974 of file TRAIL.C.
References COM_call_function(), COM_get_array(), COM_get_attribute(), COM_get_attribute_handle(), COM_get_default_communicator(), COM_get_function_handle(), COM_get_panes(), COM_get_sizeof(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_set_default_communicator(), COM_UNLOAD_MODULE_STATIC_DYNAMIC, Mesh::BSExtent< T >::GetFlatIndices(), pi, rank, TRAIL_Att2Vec(), TRAIL_ExtractPanes(), TRAIL_GetPanelAttribute(), and TRAIL_UniqueAcrossProcs().
void TRAIL_File2Window | ( | const std::string & | fname, |
const std::string & | wname, | ||
std::vector< int > & | bcflags, | ||
MPI_Comm | comm, | ||
bool | apply_disp, | ||
bool | all, | ||
bool | with_ghost | ||
) |
Definition at line 2391 of file TRAIL.C.
References COM_call_function(), COM_clone_attribute(), COM_delete_attribute(), COM_delete_pane(), COM_delete_window(), COM_free_buffer(), COM_get_array(), COM_get_attribute_handle(), COM_get_function_handle(), COM_get_panes(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_new_window(), COM_UNLOAD_MODULE_STATIC_DYNAMIC, COM_window_init_done(), and i.
Referenced by TRAIL_AutoSurfer(), and TRAIL_TransferSurfDataFILE().
double TRAIL_FindSourceTime | ( | const std::string & | dirpre, |
double | t, | ||
const std::string & | relpath | ||
) |
Definition at line 2873 of file TRAIL.C.
References TRAIL_TimeString(), and x.
void TRAIL_FixRocstarData | ( | const std::string & | wname, |
std::ostream * | ouf = NULL |
||
) |
Definition at line 2894 of file TRAIL.C.
References COM_free_buffer(), COM_get_array(), COM_get_panes(), COM_resize_array(), COM_window_init_done(), and i.
Referenced by TRAIL_TransferSurfDataFILE().
int TRAIL_Get_Block_Structured_Neighbors | ( | std::vector< std::vector< int > > & | local_extent, |
std::vector< std::vector< int > > & | global_extent, | ||
std::vector< std::vector< std::vector< int > > > & | extent_pool, | ||
std::vector< std::vector< int > > & | ghost_extent, | ||
std::vector< std::vector< std::vector< int > > > & | neighbor_extent, | ||
std::vector< int > & | neighbors | ||
) |
Given two arrays of ranges: global_extent[nd][2] local_extent[nd][2] an extent pool: extent_pool[npool][nd][2] provide the neighboring extent pool: neighbor_extent[nneighbors][nd][2] and a neighbor id list: neighbors[nneighbors].
This will take the local extent and create the full list of neighbors and the range of remote indices.
Definition at line 277 of file TRAIL.C.
References i, j, max(), min(), and TRAIL_Search_Block_Structured_Pool().
Referenced by TRAIL_FD2FE_WinCreate().
int TRAIL_GetPanelAttribute | ( | const std::string & | window_name, |
const std::string & | attribute_name, | ||
const std::string & | qual_name, | ||
int | qualval, | ||
std::vector< int > & | attvec | ||
) |
Definition at line 149 of file TRAIL.C.
References COM_get_array(), COM_get_panes(), and pi.
Referenced by TRAIL_FD2FE_Transfer(), TRAIL_FD2FE_WinCreate(), TRAIL_FD2FE_WinCreate2(), and TRAIL_FE2FD_Transfer().
int TRAIL_GetPanelAttribute | ( | const std::string & | window_name, |
const std::string & | attribute_name, | ||
std::vector< int > & | attvec | ||
) |
Definition at line 173 of file TRAIL.C.
References COM_get_array(), COM_get_panes(), and pi.
void TRAIL_GetRocstarDumpStrings | ( | const std::string & | filename, |
std::string & | wname, | ||
std::string & | timestring, | ||
std::string & | rankstring | ||
) |
void TRAIL_GetWindowSolnData | ( | const std::string & | wname, |
std::vector< std::vector< std::vector< double > > > & | soln_data, | ||
std::vector< SolnMetaData > & | smdv, | ||
int | verblevel | ||
) |
Definition at line 2305 of file TRAIL.C.
References COM_get_attributes(), COM_get_panes(), and COM_get_size().
Referenced by TRAIL_Window2UnstructuredMesh().
void TRAIL_GetWindowSolnMetaData | ( | const std::string & | wname, |
std::vector< SolnMetaData > & | smdv, | ||
int | verblevel | ||
) |
Definition at line 2260 of file TRAIL.C.
References COM_DOUBLE, COM_get_attribute(), and COM_get_attributes().
Referenced by TRAIL_Window2UnstructuredMesh().
void TRAIL_HDF2Window | ( | const std::string & | fname, |
const std::string & | wname, | ||
int | verb | ||
) |
Definition at line 2229 of file TRAIL.C.
References COM_call_function(), COM_clone_attribute(), COM_delete_attribute(), COM_delete_window(), COM_get_attribute_handle(), COM_get_function_handle(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_new_window(), COM_UNLOAD_MODULE_STATIC_DYNAMIC, and COM_window_init_done().
void TRAIL_MergeRocinFiles | ( | const std::string & | srcname, |
const std::string & | trgname, | ||
const std::string & | path, | ||
double | t, | ||
unsigned int | np, | ||
std::ostream * | ouf | ||
) |
Definition at line 2476 of file TRAIL.C.
References TRAIL_CD(), TRAIL_CWD(), and TRAIL_TimeString().
Referenced by TRAIL_RemeshFixRocstarFiles(), and TRAIL_WriteWindow().
void TRAIL_RocmopSmooth | ( | GEM_Partition & | gp, |
unsigned int | niter | ||
) |
Definition at line 2992 of file TRAIL.C.
References GEM_Partition::_comm, GEM_Partition::_debug, GEM_Partition::_nc, GEM_Partition::_out, COM_call_function(), COM_delete_window(), COM_DOUBLE, COM_get_attribute_handle(), COM_get_function_handle(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_new_attribute(), COM_new_window(), COM_set_array(), COM_UNLOAD_MODULE_STATIC_DYNAMIC, COM_window_init_done(), n, GEM_Partition::pane_id, and GEM_Partition::PopulateVolumeWindow().
void TRAIL_RocpropSmoothSurf | ( | double * | nc, |
unsigned int | nnodes, | ||
unsigned int * | ec, | ||
unsigned int | nel, | ||
unsigned int * | cnstr_type, | ||
unsigned int | niter | ||
) |
Definition at line 3057 of file TRAIL.C.
References COM_call_function(), COM_delete_window(), COM_DOUBLE, COM_get_attribute_handle(), COM_get_function_handle(), COM_INT, COM_LOAD_MODULE_STATIC_DYNAMIC, COM_new_attribute(), COM_new_window(), COM_set_array(), COM_set_size(), COM_UNLOAD_MODULE_STATIC_DYNAMIC, i, and MPI_COMM_SELF.
int TRAIL_Search_Block_Structured_Pool | ( | std::vector< std::vector< int > > & | search_extent, |
std::vector< std::vector< std::vector< int > > > & | extent_pool, | ||
std::vector< std::vector< std::vector< int > > > & | neighbor_extent, | ||
std::vector< int > & | neighbors | ||
) |
Given an array of ranges: search_extent[nd][2] and one array of array of ranges: partition_extent[number_of_partitions][nd][2] Provide an array of range arrays: neighbor_extent[number_of_neighbors][nd][2] and a processor list: neighbors[number_of_neighbors].
This is the basic search to find what elements of the extent pool collide with the given search extent.
Definition at line 229 of file TRAIL.C.
References i, j, max(), and min().
Referenced by TRAIL_Get_Block_Structured_Neighbors().
void TRAIL_SetAttribute | ( | const std::string & | aname, |
int | pane_id, | ||
T & | value | ||
) |
Definition at line 386 of file TRAIL.C.
References COM_get_array(), COM_resize_array(), and COM_set_size().
Referenced by TRAIL_FD2FE_WinCreate(), and TRAIL_FD2FE_WinCreate2().
int TRAIL_SurfaceMesh2Window | ( | const std::string & | wname, |
int | pane_id, | ||
Mesh::NodalCoordinates & | coords, | ||
Mesh::Connectivity & | conn | ||
) |
Creates a window from a Mesh object. (copies data)
Definition at line 414 of file TRAIL.C.
References Mesh::Connectivity::AddElement(), COM_get_array(), COM_new_window(), COM_resize_array(), COM_set_size(), COM_window_init_done(), Mesh::Connectivity::Nelem(), and Mesh::NodalCoordinates::Size().
Referenced by main().
std::string TRAIL_TimeString | ( | double | t | ) |
Definition at line 85 of file TRAIL.C.
Referenced by TRAIL_AutoSurfer(), TRAIL_FindSourceTime(), TRAIL_MergeRocinFiles(), TRAIL_RemeshAutoSurfer(), TRAIL_RemeshShuffle(), TRAIL_RemeshWrite(), TRAIL_TransferSurfDataFILE(), and TRAIL_WriteWindow().
double TRAIL_TimeString | ( | const std::string & | ts | ) |
Definition at line 95 of file TRAIL.C.
References Mesquite::pow(), and x.
bool TRAIL_TransferSurfDataFILE | ( | const std::string & | src, |
const std::string & | trg, | ||
const std::string & | dest, | ||
const std::string & | srcpath, | ||
const std::string & | trgpath, | ||
const std::string & | destpath, | ||
const std::string & | crpath, | ||
double | t, | ||
unsigned int | id, | ||
MPI_Comm | comm, | ||
std::ostream * | ouf | ||
) |
Definition at line 2620 of file TRAIL.C.
References COM_call_function(), COM_delete_window(), COM_DOUBLE, COM_free_buffer(), COM_get_array(), COM_get_attribute(), COM_get_attribute_handle(), COM_get_attributes(), COM_get_function_handle(), COM_get_panes(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_new_attribute(), COM_resize_array(), COM_UNLOAD_MODULE_STATIC_DYNAMIC, i, MPI_COMM_WORLD, rank, TRAIL_CD(), TRAIL_CWD(), TRAIL_ExtractSurf0(), TRAIL_File2Window(), TRAIL_FixRocstarData(), TRAIL_TimeString(), and TRAIL_WriteWindow().
Referenced by TRAIL_RemeshAutoSurfer().
int TRAIL_UniqueAcrossProcs | ( | std::vector< int > & | input_data, |
std::vector< int > & | output_data, | ||
MPI_Comm | communicator | ||
) |
Definition at line 191 of file TRAIL.C.
Referenced by TRAIL_FD2FE_Transfer(), TRAIL_FD2FE_WinCreate(), TRAIL_FD2FE_WinCreate2(), and TRAIL_FE2FD_Transfer().
int TRAIL_UnstructuredMesh2Pane | ( | const std::string & | wname, |
int | pane_id, | ||
Mesh::UnstructuredMesh & | mesh, | ||
SolnMetaData & | smdv, | ||
std::vector< std::vector< double > > & | soln_data, | ||
int | verblevel | ||
) |
Creates a window from a Mesh object. (copies data)
Definition at line 473 of file TRAIL.C.
References Mesh::Connectivity::AddElement(), COM_get_array(), COM_resize_array(), COM_set_size(), Mesh::UnstructuredMesh::con, Mesh::UnstructuredMesh::nc, Mesh::Connectivity::Nelem(), and Mesh::NodalCoordinates::Size().
void TRAIL_Window2UnstructuredMesh | ( | const std::string & | wname, |
std::vector< Mesh::UnstructuredMesh > & | meshes, | ||
std::vector< SolnMetaData > & | smdv, | ||
std::vector< std::vector< std::vector< double > > > & | soln_data, | ||
int | verblevel, | ||
bool | no_ghost | ||
) |
Definition at line 2010 of file TRAIL.C.
References COM_get_panes(), COM_get_size(), Mesh::BSExtent< T >::CreateUnstructuredMesh(), Mesh::BSExtent< T >::GetFlatIndices(), i, TRAIL_GetWindowSolnData(), and TRAIL_GetWindowSolnMetaData().
void TRAIL_WriteRocinControl | ( | std::vector< int > & | pane_id, |
const std::string & | pre, | ||
int | rank | ||
) |
Definition at line 2793 of file TRAIL.C.
Referenced by TRAIL_WriteWindow().
bool TRAIL_WriteWindow | ( | const std::string & | wname, |
const std::string & | winpath, | ||
const std::string & | cntl_name, | ||
const std::string & | cntl_path, | ||
double | t, | ||
unsigned int | id, | ||
MPI_Comm | comm, | ||
std::ostream * | ouf | ||
) |
Definition at line 2811 of file TRAIL.C.
References COM_call_function(), COM_free_buffer(), COM_get_attribute_handle(), COM_get_function_handle(), COM_get_panes(), COM_LOAD_MODULE_STATIC_DYNAMIC, COM_UNLOAD_MODULE_STATIC_DYNAMIC, i, id(), rank, TRAIL_CD(), TRAIL_CWD(), TRAIL_MergeRocinFiles(), TRAIL_TimeString(), and TRAIL_WriteRocinControl().
Referenced by main(), TRAIL_TransferSurfDataFILE(), and GEM_Partition::WriteRocstar().