bonjour je veux utiliser la finction MPI Create_cart

Mon code est :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
int *ndim=new int[3];
ndim[0]=1;ndim[1]=1;ndim[2]=2;
 
bool *periods=new bool[3];
periods[0]=true;periods[1]=true;periods[2]=true;
 
MPI::Cartcomm card;
card= MPI::Intracomm::Create_cart(3,ndim, periods,false) ;
et le message erreur est :
error: cannot call member function ‘virtual MPI::Cartcomm MPI::Intracomm::Create_cart(int, const int*, const bool*, bool) const’ without object

Je ne comprend pas trop le message erreur.

D'avance merci