Dear community members,
I’m very new parallel computing, till now I wrote sequential codes, due to time constrain I have to complete my masters by next month end. So I started doing parallel computations. while solving the unsteady NS equations even by increasing the number of processors my commutation speed is not increasing. More over I’m feeling like my sequential code faster than parallel code. Here is the code snippt for time integration of my script and I have doubt on this part . If any knows what is the bottle neck in my code please let know.
for (int n=rep+1; n<=iter; n++)
{
if(mpirank == 0)
cout << " i = " << n << "\n";
cout << " tps = " << tps << "\n";
tps=tps+dt;
{
[upr,upt,upz,pp] = [ur,ut,uz,p];
macro def(i)[i, i#B, i#C, i#D]//
macro init(i)[i, i, i, i]//
createMat(Th, NSMAT, Pk);
NSMAT = NS(Uh,Uh,tgv = -1);
rhs1[] = NSRITE(0,Uh,tgv = -1);
ur[] = NSMAT^-1*rhs1[];
}
}
You help will be highly appreciated. Thank you in advance
Good regards,
sumen.