thegooglecodearchive / ddscat

Automatically exported from code.google.com/p/ddscat
0 stars 0 forks source link

NORI not correct with MPI #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compiling with : sp + MKL + OpenMP + MPI
2. Add rotation : 
 DDSCAT ckpt 5, NBETA,NPHI,NTHETA=           5           5           5
                NORICHAR=           3  NRFLD=           0
3. Run in parallel.

What is the expected output? What do you see instead?
The value of NORICHAR is not initialized when using 2 or more processors with 
MPI. In the "sequentiel" version, as NORICHAR is correctly initialized for the 
MASTER processor, the problem do not arise.

What version of the product are you using? On what operating system?
The last one : 
 >DDSCAT --- DDSCAT 7.3.0 [13.05.03]   
 >DDSCAT     VERSNUM=   730
On linux, with openmpi (but i don't think the problem comes from here)

Please provide any additional information below.
I think the initilization done for the master process as (line 1287) :
         IF(NBETA*NPHI*NTHETA<=1000)THEN
            NORICHAR=3
         ELSE
            NORICHAR=1+INT(LOG10(REAL(NBETA*NPHI*NTHETA)))
         ENDIF
is not redone for the other processors, with their corresponding angles of 
calculation.

Many thanks,

Yann

Original issue reported on code.google.com by yjo...@gmail.com on 22 Jan 2015 at 4:39