Xiangyu-Hu / SPHinXsys

SPHinXsys provides C++ APIs for engineering simulation and optimization. It aims at complex systems driven by fluid, structure, multi-body dynamics and beyond. The multi-physics library is based on a unique and unified computational framework by which strong coupling has been achieved for all involved physics.
https://www.sphinxsys.org/
Apache License 2.0
259 stars 199 forks source link

277 switch between double and float #318

Closed DrChiZhang closed 11 months ago

DrChiZhang commented 11 months ago

Switch between float and double with the following modification, 1, DoubleVec -> BiVector 2, TripleVec -> TriVector 3, CaculateDoubleDotProduct -> CaculateBiDotProduct 4, double -> Real 5, SimTK::vecd -> SimTKvecd (Note that when float is using, vector and matrix in float are changed to SimTK vector and float in double to avoid double-build of SimBoby)

With double, tests pass, While the following tests failed due to the large error. 10:test_2d_dambreak_python 13:test_2d_elastic_gate 16:test_2d_eulerian_taylor_green 30:test_2d_self_contact 31:test_2d_shell 43:test_2d_oscillating_beam_UL 46:test_2d_stfb 47:test_2d_stlw 53:test_vector_functions_particle_relaxation 58:bernoulli_beam_struct_sim 76:test_3d_passive_cantilever 79:test_3d_roof 80:roof_under_self_weight.dp_4 83:test_3d_roof_parametric_cvt 90:test_3d_twisting_column

Xiangyu-Hu commented 11 months ago

Hi @ChiZhangatTUM , there are some conflicts to be solved.

DrChiZhang commented 11 months ago

Hi @ChiZhangatTUM , there are some conflicts to be solved.

Done.

Xiangyu-Hu commented 11 months ago

Strange, recently the windows CI can not pass due to the failure on installing gfortran. @FabienPean-Virtonomy .

DrChiZhang commented 11 months ago

Strange, recently the windows CI can not pass due to the failure on installing gfortran. @FabienPean-Virtonomy .

This looks like a old bug. I will try to find a solution.

Xiangyu-Hu commented 11 months ago

Strange, recently the windows CI can not pass due to the failure on installing gfortran. @FabienPean-Virtonomy .

This looks like a old bug. I will try to find a solution.

CI on linux and mcos both failed.

DrChiZhang commented 11 months ago

Strange, recently the windows CI can not pass due to the failure on installing gfortran. @FabienPean-Virtonomy .

This looks like a old bug. I will try to find a solution.

CI on linux and mcos both failed.

According to log file, CI on Linux and MaxOS were cancelled.

Xiangyu-Hu commented 11 months ago

That means one case runs 6 hours and didn't finish.

DrChiZhang commented 11 months ago

That means one case runs 6 hours and didn't finish.

Understood, I will have a check.

DrChiZhang commented 11 months ago

@Xiangyu-Hu This PR can be merged.