Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix allocation. #63

Merged
merged 1 commit into from
Apr 29, 2020
Merged

Fix allocation. #63

merged 1 commit into from
Apr 29, 2020

Conversation

lxmota
Copy link
Contributor

@lxmota lxmota commented Apr 28, 2020

  • Fix allocation of arrays with proper number of support
    nodes, instead of all nodes.
  • Relax tolerance for max-ent shape functions.
  • Use beter material properties for copper.

- Fix allocation of arrays with proper number of support
nodes, instead of all nodes.
- Relax tolerance for max-ent shape functions.
- Use beter material properties for copper.
@lxmota lxmota requested review from btalami and japlews April 28, 2020 23:22
@@ -437,7 +437,7 @@ void otm_allocate_state(input const& in, state& s) {
auto const num_elements = s.elements.size();
auto const num_materials = in.materials.size();
auto const num_boundaries = in.boundaries.size();
auto const support_size = s.points_to_point_nodes.size();
auto const support_size = s.nodes_in_element.size();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Points to point nodes is definitely an order of magnitude too large.

@lxmota lxmota merged commit f01e152 into master Apr 29, 2020
@lxmota lxmota deleted the otm-debug-2020-04-28 branch April 29, 2020 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants