Page 1 of 1

Utilisation MEDCoupling

Posted: Tue Jul 04, 2023 10:45 am
by Bastringue
Bonjour, j'ai installé MedCoupling version 9.9 sur Debian 10 et je n'arrive pas à faire tourner un exemple qui utilise MEDCouplingCMesh. J'obtiens :

Code: Select all

main.cpp:22:16: error: ‘MEDCouplingCMesh’ is not a member of ‘MEDCoupling’
pour cette ligne :

Code: Select all

 MEDCoupling::MEDCouplingCMesh *mesh=MEDCoupling::MEDCouplingCMesh::New("My2D_CMesh");
En fait, je n'ai pas trouvé de doc qui montre un exemple C++ de construction de maillage cartésien avec la version 9.9 (ni la doc développeur de cette version)... auriez-vous ce lien svp ? Merci d'avance

Re: Utilisation MEDCoupling

Posted: Tue Jul 04, 2023 12:11 pm
by Bastringue
Désolé, c'est résolu en partie : je n'avais pas inclus le bon fichier #include "MEDCouplingCMesh.hxx"
Je reste preneur en revanche d'un lien pour des exemples C++ de MC version 9.9 ...
Merci

Re: Utilisation MEDCoupling

Posted: Tue Jul 04, 2023 1:06 pm
by Chai
Hello Bastringue,

Could you specify what you are trying to do with MEDCoupling and code_saturne ? code_saturne uses MEDCoupling for some functionnalities and usage can be seen in "cs_medcoupling_XXXX.cxx" files.

If you are trying to use a cartesian mesh within code_saturne you can generate it directly with the code, either using the GUI or an advanced user function (cs_user_mesh.c).

Re: Utilisation MEDCoupling

Posted: Wed Jul 05, 2023 9:07 am
by Bastringue
Hello Chai, thanks for answering...
I am using MEDCoupling outside of code-saturne and was missing some documentation on it (examples in C++ with the latest version, in particular). I was just hoping that a code-saturn user could have some...

Re: Utilisation MEDCoupling

Posted: Fri Jul 07, 2023 4:32 pm
by Chai
Hi Bastringue,

You can find documentation and example on the salome website : https://docs.salome-platform.org/latest/main/index.html

Chaï