Removing call to set LibMesh threads and updating call for setting point containment tolerance.

This commit is contained in:
Patrick Shriwise 2020-02-14 14:49:22 -06:00
parent 4d607e52b8
commit f3f114ff0e
3 changed files with 134 additions and 50 deletions

View file

@ -96,12 +96,6 @@ public:
//! \param[in] group HDF5 group
virtual void to_hdf5(hid_t group) const = 0;
//! \param[in] bank Array of bank sites
//! \param[out] Whether any bank sites are outside the mesh
//! \return Array indicating number of sites in each mesh/energy bin
virtual xt::xarray<double>
count_sites(const std::vector<Particle::Bank>& bank, bool* outside) const;
//! Find the mesh lines that intersect an axis-aligned slice plot
//
//! \param[in] plot_ll The lower-left coordinates of the slice plot.
@ -230,6 +224,17 @@ public:
void to_hdf5(hid_t group) const override;
// New methods
//! Count number of bank sites in each mesh bin / energy bin
//
//! \param[in] bank Array of bank sites
//! \param[out] Whether any bank sites are outside the mesh
//! \return Array indicating number of sites in each mesh/energy bin
xt::xtensor<double, 1> count_sites(const Particle::Bank* bank,
int64_t length,
bool* outside) const;
// Data members
double volume_frac_; //!< Volume fraction of each mesh element
xt::xtensor<double, 1> width_; //!< Width of each mesh element
@ -271,6 +276,8 @@ public:
UnstructuredMeshBase(pugi::xml_node node);
UnstructuredMeshBase(const std::string& filename);
std::string bin_label(int bin) const override;
std::string filename_;
};