[mpich-discuss] coupling

Huiwei Lu huiweilu at mcs.anl.gov
Sun Oct 27 19:19:47 CDT 2013


Hi, Fereshte,

I am not familiar with oceanG application. So the following suggestions are based on my guesses or experiences:

1. As Toni and I have suggested, try to use the most recent version of MPICH in http://www.mpich.org/, to see if the bug still occurs.

2. Have you tried to run it under gdb or ddd to catch the bug? You can follow the steps in http://wiki.mpich.org/mpich/index.php/Building_MPICH_For_Development#Use_gdb. Try ‘bt’ in gdb to show where things goes wrong.

    mpiexec -n [number of processes] xterm -e gdb ./your_app

3. What’s the difference between 'mpirun -np 2 ./oceanG coupling_inlet-test.in>mpi.log’ and 'mpirun -np 8 ./oceanG coupling_inlet-test.in>mpi.log’? Only the number of processes? Maybe the difference of these two runs is the place you can start to find the bug.

4. As you said, the swan model may go wrong. Have you tried to run swan model only to see if it is broken?

--
Huiwei Lu
http://www.mcs.anl.gov/~huiweilu/

On Oct 27, 2013, at 5:33 AM, fereshteh komijani <fereshtehkomijani at gmail.com> wrote:

>  Sure.
>  ROMS and SWAN models are models for ocean and wave models, respectively.  Coupling of them require 3 input files: coupling_test.in, swan_test.in and roms_test.in which first one is coupled input file and also one build.bash file  which in it user called requested libraries, cpp optins, header file, compilers (for me gcc and gfortran).  For example in build.bash file I set
> USE_MPI=on = on
> USE_MPIF90 =on
> WHICH_MPI=mpich2
> FORT = gfortran
> also with regard that for coupling model, MCT (model coupling toolkit) is necessary I have installed it and set its  include and lib directories in build.bash file.
>  
> In coupling_test.in user call swan_test.in and roms_test.in as wave and ocean model's inputs.
> In roms_test.in some coefficients, solving technique and some input forcing file determined.
>  
> for choosing number of nodes for each model there are NtileI and Ntilej in roms_test.in and Nthreads (ocean) and Nthreads (wave) in coupling_test.in file ( Nthreads (ocean)=NtileI *Ntilej ) and total nodes are equal to Nthreads (ocean)+Nthreads (wave).
> whenever i set one  node for wave model (SWAN) (Nthreads (wave)=1) after running by 
> mpirun -np 2 ./oceanG coupling_inlet-test.in>mpi.log
> it replies:
> application called MPI_Abort(comm=0x84000002, 4) - process 0
> But when set Nthreads (wave)>1 (and everything for Nthreads (ocean)) for example
> mpirun -np 8 ./oceanG coupling_inlet-test.in>mpi.log
> mpi.log file (attaché file) shows that roms model does not have problems and its nodes are active but nothing happen for swan model after 2 weeks than running.
> I hope that this information be sufficient.
> All the best
> fereshte
>  
> <mpi.txt>_______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss




More information about the discuss mailing list