Skip to content

reduce it down a little bit #1

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

Merged
merged 1 commit into from
Nov 26, 2019
Merged

reduce it down a little bit #1

merged 1 commit into from
Nov 26, 2019

Conversation

WildCryptoFox
Copy link

No description provided.

@@ -1 +1 @@
nightly-2019-11-24
nightly-2019-11-26
Copy link
Author

Choose a reason for hiding this comment

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

This is the current latest nightly. Which digresses from 2019-11-25 which appears to be happy with this code.

fn problematic_function<Space>(_volume_space: &Space, material_surface: &Polygon<f64>)
where
Space: GeometricFiniteElementSpace<f64, GeometryDim = U2, ReferenceDim = U2>,
Space: GeometricFiniteElementSpace<GeometryDim = U1/*, NodalDim = U1*/>,
Copy link
Author

Choose a reason for hiding this comment

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

Simpler "fix" as below

Copy link
Owner

Choose a reason for hiding this comment

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

That is very strange, as the Space type has nothing to do with the the FiniteElement impls used in the function code.

Comment on lines +92 to +76
// Including this trait bound (which should already be satisfied) seems to resolve the ICE
//+ FiniteElementAllocator<U1, U1>
//
// This has the same effect as telling the compiler Space::NodalDim = U1; which was not already
// known to be satisfied.
Copy link
Author

@WildCryptoFox WildCryptoFox Nov 26, 2019

Choose a reason for hiding this comment

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

Or so it does in this case.

git = "https://github.com/rustsim/nalgebra.git"
rev = "31ef5f0ab02c6ecf279867f07cd63e16cece8b75"
default-features = false
features = ["serde-serialize", "default"]
Copy link
Author

Choose a reason for hiding this comment

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

VERY weird that "default" acts differently to "std" here. Replacing this with "std" does not trigger the ICE.

material_surface_element
.map_reference_coords(&eta)
.magnitude();
material_surface_element.map_reference_coords().magnitude();
Copy link
Author

Choose a reason for hiding this comment

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

This is the same bug as above.

@Andlon Andlon merged commit 57290d4 into Andlon:master Nov 26, 2019
@Andlon
Copy link
Owner

Andlon commented Nov 26, 2019

Thanks a lot @WildCryptoFox!

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