#include "cs_defs.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mpi.h>
#include "ple_locator.h"
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_array.h"
#include "cs_assert.h"
#include "cs_base.h"
#include "cs_coupling.h"
#include "cs_io.h"
#include "cs_mesh.h"
#include "cs_mesh_connect.h"
#include "cs_mesh_location.h"
#include "cs_mesh_quantities.h"
#include "cs_parall.h"
#include "cs_preprocessor_data.h"
#include "cs_timer.h"
#include "cs_timer_stats.h"
#include "fvm_nodal.h"
#include "fvm_interpolate.h"
#include "cs_restart.h"
#include "cs_restart_map.h"
Functions | |
void | cs_restart_map_set_mesh_input (const char *mesh_path) |
Indicate restart files should be mapped to a given mesh input. More... | |
void | cs_restart_map_set_options (bool apply_mesh_deformation, float tolerance_base, float tolerance_fraction) |
Set options relative to restart file mapping to a given mesh input. More... | |
void | cs_restart_map_set_locations (bool map_cell_centers, bool map_vertices) |
Indicate whether location for restart file mapping is needed at cells or vertices. More... | |
void | cs_restart_map_build (void) |
Build mapping of restart files to different mesh if defined. More... | |
void | cs_restart_map_free (void) |
Free restart file mapping to different mesh. More... | |
void cs_restart_map_build | ( | void | ) |
Build mapping of restart files to different mesh if defined.
[in] | need_vertices | indicate if location at vertices is needed |
void cs_restart_map_free | ( | void | ) |
Free restart file mapping to different mesh.
Revert restart reading to default behavior.
void cs_restart_map_set_locations | ( | bool | map_cell_centers, |
bool | map_vertices | ||
) |
Indicate whether location for restart file mapping is needed at cells or vertices.
By default, mapping is done for cell-based quantities, but not for vertex-based quantities.
Mapping of quantities at faces or particles is not handled yet, but will use the cell-center or vertex based mappings in the future in all cases:
[in] | map_cell_centers | locate cell centers in the previous mesh. |
[in] | map_vertices | locate vertices in the previous mesh. |
void cs_restart_map_set_mesh_input | ( | const char * | mesh_path | ) |
Indicate restart files should be mapped to a given mesh input.
[in] | mesh_path | path to mesh input |
void cs_restart_map_set_options | ( | bool | apply_mesh_deformation, |
float | tolerance_base, | ||
float | tolerance_fraction | ||
) |
Set options relative to restart file mapping to a given mesh input.
[in] | apply_mesh_deformation | apply mesh deformation from upstream computation (if present) so as to map to final, and not initial mesh shape. |
[in] | tolerance_base | associated base tolerance (used for bounding box check only, not for location test) |
[in] | tolerance_fraction | associated fraction of element bounding boxes added to tolerance |