Hi Radu,

The errors were gone after the update. I'm developing a FSI model using 
openfoam as the fluid solver. The coupling is simply via calling chrono 
APIs.

I also wanted to let you know that there were lots of warnings on chrono 
code when using openfoam's compiler settings. In order to suppress those 
warnings, I had to add the following options when compiling my code.
    -Wno-sign-compare \
    -Wno-old-style-cast \
    -Wno-non-virtual-dtor \
    -Wno-delete-non-virtual-dtor \

Haifei

On Tuesday, September 17, 2024 at 11:40:00 PM UTC-6 Radu Serban wrote:

> Haifei,
>
> Please pull the latest code in the ‘main’ branch and try again.  
>
> Out of curiosity: what 3rd party package are you working with and how do 
> you couple it to Chrono?
>
> --Radu
>
>  
>
> *From:* [email protected] <[email protected]> *On 
> Behalf Of *Haifei Chen
> *Sent:* Tuesday, September 17, 2024 7:26 AM
> *To:* ProjectChrono <[email protected]>
> *Subject:* [chrono] error: call of overloaded 'cos(double&)' is ambiguous
>
>  
>
> Hello,
>
>  
>
> While compiling a third-party code coupled with chrono, c++ compiler 
> complained about the said error in ChVector3.h (also for cos and sin)
>
>
> https://github.com/projectchrono/chrono/blob/main/src/chrono/core/ChVector3.h#L848
>  
> <https://urldefense.com/v3/__https:/github.com/projectchrono/chrono/blob/main/src/chrono/core/ChVector3.h*L848__;Iw!!Mak6IKo!K6V-V3qPwotZ3fPFbZHncRqyDnLeY3efvZRulwVx7JQ4a1I0hG9wTvxig7vdHKu3oLtDgWtMSX6YG66Dyg$>
>
>  
>
> /users/hfchen/chrono/chrono/src/chrono/core/ChVector3.h:462:18: error: 
> call of overloaded 'cos(double&)' is ambiguous
>   462 |     res.x() = cos(norm_angle);  // 1) rot 'norm.angle'about z
>   463 |     res.y() = sin(norm_angle);
>   466 |     res.y() = projlen * cos(pol_angle);
>   467 |     res.z() = projlen * sin(pol_angle);
>
>   848 |     return sqrt(Length2());
>
>  
>
> I think the issue is similar to this one at 
> https://gitlab.kitware.com/vtk/vtk/-/issues/17144 
> <https://urldefense.com/v3/__https:/gitlab.kitware.com/vtk/vtk/-/issues/17144__;!!Mak6IKo!K6V-V3qPwotZ3fPFbZHncRqyDnLeY3efvZRulwVx7JQ4a1I0hG9wTvxig7vdHKu3oLtDgWtMSX6n5NiXMw$>.
>  
> Could this be resolved similarly as well?
>
>  
>
> Thanks,
>
> Haifei
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "ProjectChrono" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/projectchrono/de360c23-90d7-4445-aff3-dc2818288f66n%40googlegroups.com
>  
> <https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/de360c23-90d7-4445-aff3-dc2818288f66n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!K6V-V3qPwotZ3fPFbZHncRqyDnLeY3efvZRulwVx7JQ4a1I0hG9wTvxig7vdHKu3oLtDgWtMSX70dTNRfA$>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/bd8a930e-01ae-450e-a38a-93a2f39a3bcbn%40googlegroups.com.

Reply via email to