-
Notifications
You must be signed in to change notification settings - Fork 6
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
Failed to convert IdealGlmMhdEquations
to bits type
#11
Comments
The shallow water equations just do not really make sense in 3D, so there is no 3D setup with them. The |
I have tried removing But if you want to use |
At least we know why it failed and have a kind of workaround allowing you to test some kernels for the MHD equations. Thanks for looking for a real solution to this issue! |
Try to fix here trixi-framework/Trixi.jl#2050 |
Also here trixi-framework/Trixi.jl#2052 |
In order to test
nonconservative_terms::True
related kernels in 2D and 3D, I used https://github.com/huiyuxie/trixi_cuda/blob/main/tests/mhd_alfven_wave_2d.jl and https://github.com/huiyuxie/trixi_cuda/blob/main/tests/mhd_alfven_wave_3d.jl (the corresponding 1D file does not fit) as @ranocha suggested. But theIdealGlmMhdEquations2D
andIdealGlmMhdEquations3D
(and probably also forIdealGlmMhdEquations1D
failed to convert to bits type in kernels like https://github.com/huiyuxie/trixi_cuda/blob/a81eccd6a6fda336d7877c5cda73a48a4c6b2c92/cuda_dg_2d.jl#L190-L225 and would cause errors likeand this is the first time I've encountered an issue like this. So I directly changed to other test files, like https://github.com/huiyuxie/trixi_cuda/blob/main/tests/shallowwater_well_balanced_2d.jl for 2D and this time it worked and passed the accuracy tests.
(1) As mentioned above, I used https://github.com/huiyuxie/trixi_cuda/blob/main/tests/shallowwater_well_balanced_1d.jl for testing 1D kernels and https://github.com/huiyuxie/trixi_cuda/blob/main/tests/shallowwater_well_balanced_2d.jl for 2D. But I cannot find any suitable test example for 3D (except for
IdealGlmMhdEquations
). Is there any recommended samples for 3D? Thanks!(2) Why did the conversion of
IdealGlmMhdEquations
to a bits type fail? I further inspected the difference between these equations and I think it may because of the keywordmutable
like here https://github.com/trixi-framework/Trixi.jl/blob/68df09d5a21bd8f7393df90dab915247f9498505/src/equations/ideal_glm_mhd_2d.jl#L14-L24. Is this keyword really necessary? If yes, I think this would help https://cuda.juliagpu.org/stable/tutorials/custom_structs/ but I am not pretty sure as it does not mention how to handlemutable
.The text was updated successfully, but these errors were encountered: