espressomd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ESPResSo] mpi


From: Christoph Junghans
Subject: Re: [ESPResSo] mpi
Date: Thu, 14 May 2009 18:09:34 +0200
User-agent: Internet Messaging Program (IMP) H3 (4.1.4)

Your error message
"t_random seed 174187078"
shows me that there was only one number.

Maybe n_procs was not determined correctly.

Christoph


Zitat von martina pannuzzo <address@hidden>:


thank you for the answer,

but i 've controlled the setup.tcl script and i found a code very similar to your:


 set seedbase $c
    for { set i 1 } { $i < $n_procs } { incr i } {
        lappend seedbase [expr $c + 2304*$i]
    }
    eval t_random seed $seedbase





any suggestion?

Martina






Date: Thu, 14 May 2009 16:40:36 +0200
From: address@hidden
To: address@hidden
CC: address@hidden
Subject: Re: [ESPResSo] mpi

Hallo Martina,

you need as many seeds as nodes, a tcl block like this will help:

set seed "[pid]"
set seeds {}
for {set i 0} {$i < [setmd n_nodes]} {incr i} {
lappend seeds [expr ($i+1)*$seed]
}
eval t_random seed $seeds

Cheers,

Christoph

Zitat von martina pannuzzo <address@hidden>:

>
>
> dear all,
>
> I am trying to execute parallel version of expresso (mpirun).
>
> I have 2 pc connected via ethernet cable; in each node i installed
> espresso and it work fine in local.
>
> the command line i used is:
>
>
> mpirun -np 2 n0 N ./obj-Pentium_4-pc-linux/Espresso_bin
> packages/mbtools/examples/scripts/main.tcl packages/mbtools/examples/
>
> the error is:
>
>
>
>
>
>
>
> Wrong # of args (2)! Usage: 't_random seed [<seed(0)> ... <seed(1)>]'
> while executing
> "t_random seed 174187078"
> ("eval" body line 1)
> invoked from within
> "eval t_random seed $seedbase"
> (procedure "::mbtools::utils::init_random" line 11)
> invoked from within
>
>
>
> can you help me?!
>
> thank you very much.
>
>
>
> Martina
>
> _________________________________________________________________
> Messenger 2009: scaricalo gratis!
> http://messenger.it/



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



_________________________________________________________________
Resta in contatto con gli amici, comunica con Messenger!
http://messenger.it/cominciaAcomunicare.aspx



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]