Skip to content

Commit

Permalink
add gyre example and high level mesh bp examples driver (#1296)
Browse files Browse the repository at this point in the history
* add gyre example and skel for high level mesh bp examples driver

* power on generate driver

* changelog
  • Loading branch information
cyrush authored Jul 18, 2024
1 parent 3a9b82c commit c990a81
Show file tree
Hide file tree
Showing 13 changed files with 1,321 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ Notable changes to Conduit are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project aspires to adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Added

#### Blueprint
- Added `conduit::blueprint::mesh::examples:generate` driver functions that supports creating any blueprint example mesh with options.
- Added `conduit::blueprint::mesh::examples:generate_default_options` functions that provide default options values for `conduit::blueprint::mesh::examples:generate`.
- Added python API support for `conduit::blueprint::mesh::examples:generate` and `conduit::blueprint::mesh::examples:generate_default_options`.
- Added `gyre` example mesh, which provides a simple velocity vector field.

## [0.9.2] - Released 2024-05-21

### Added
Expand Down
6 changes: 6 additions & 0 deletions src/libs/blueprint/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ set(blueprint_headers
conduit_blueprint_mesh_examples_polystar.hpp
conduit_blueprint_mesh_examples_rz_cylinder.hpp
conduit_blueprint_mesh_examples_tiled.hpp
conduit_blueprint_mesh_examples_gyre.hpp
conduit_blueprint_mesh_examples_generate.hpp
conduit_blueprint_mesh_flatten.hpp
conduit_blueprint_mcarray.hpp
conduit_blueprint_mcarray_examples.hpp
conduit_blueprint_o2mrelation.hpp
Expand Down Expand Up @@ -84,6 +87,8 @@ set(blueprint_sources
conduit_blueprint_mesh_examples_polystar.cpp
conduit_blueprint_mesh_examples_rz_cylinder.cpp
conduit_blueprint_mesh_examples_tiled.cpp
conduit_blueprint_mesh_examples_gyre.cpp
conduit_blueprint_mesh_examples_generate.cpp
conduit_blueprint_mesh_flatten.cpp
conduit_blueprint_mcarray.cpp
conduit_blueprint_mcarray_examples.cpp
Expand Down Expand Up @@ -191,6 +196,7 @@ set(conduit_blueprint_mpi_sources
set(conduit_blueprint_mpi_headers
conduit_blueprint_mpi.hpp
conduit_blueprint_mpi_mesh.hpp
conduit_blueprint_mpi_mesh_flatten.hpp
conduit_blueprint_mpi_mesh_partition.hpp
conduit_blueprint_mpi_mesh_examples.hpp
conduit_blueprint_mpi_mesh_utils.hpp
Expand Down
1 change: 0 additions & 1 deletion src/libs/blueprint/conduit_blueprint_mesh_examples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ namespace examples
//---------------------------------------------------------------------------//
const float64 PI_VALUE = 3.14159265359;


//---------------------------------------------------------------------------//
struct point
{
Expand Down
3 changes: 3 additions & 0 deletions src/libs/blueprint/conduit_blueprint_mesh_examples.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include "conduit_blueprint_mesh_examples_polystar.hpp"
#include "conduit_blueprint_mesh_examples_rz_cylinder.hpp"
#include "conduit_blueprint_mesh_examples_tiled.hpp"
#include "conduit_blueprint_mesh_examples_gyre.hpp"
#include "conduit_blueprint_mesh_examples_generate.hpp"

//-----------------------------------------------------------------------------
// -- begin conduit::--
Expand All @@ -48,6 +50,7 @@ namespace mesh
//-----------------------------------------------------------------------------
namespace examples
{

/// Generates a uniform grid with a scalar field that assigns a unique,
/// monotonically increasing value to each element.
void CONDUIT_BLUEPRINT_API basic(const std::string &mesh_type,
Expand Down
Loading

0 comments on commit c990a81

Please sign in to comment.