why" write(*,*) nid, nelv,vx(1,1,1,1) " gives different results with 2cpus

20 views
Skip to first unread message

Technical Forex

unread,
Jun 26, 2025, 11:05:43 AMJun 26
to Nek5000
     I want to output tthe velocity with 
               write(*,*) nid, nelv,vx(1,1,1,1)
but the program gives me the following different values.
          1         576   0.0000000000000000    
           0         576  0.98813790082931519     
i want to know hwat is the reason?

Philipp Schlatter

unread,
Jun 26, 2025, 4:19:22 PMJun 26
to nek...@googlegroups.com

nid is the rank (i.e. MPI process ID). So it seems you run on 2 ranks (0 and 1). The velocity vx(1,1,1,1) corresponds to the value in the 1,1,1 position of the first element local to processes 0 and 1, respectively. Therefor they are different, because they correspond to different elements.

Philipp

--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/nek5000/b07dbe8a-ae2e-4a91-aa47-dab1fc38eb37n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages