# Parallel version problem

**URL:** <https://opentelemac.org/forum/t/parallel-version-problem/5226>\
**Category:** TOMAWAC\
**Created:** [October 5, 2018, 8:21am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226 "2018-10-05T08:21:31Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![user\_12315](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/b3f665/32.png) [@user\_12315](https://opentelemac.org/forum/u/user_12315)\
**Post date:** [October 5, 2018, 8:21am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/1 "2018-10-05T08:21:31Z")

</div>

Goodmorning at all,

I did a simulation for the propagation of the waves with a very big domain.

The results with scalar version are good but the same simulation with the parallel version gave very casual and wrong results. Very non sense results.

I can’t understand why.

---

<div class="post-metadata">

**Author:** ![user\_63](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/c4cdca/32.png) [@user\_63](https://opentelemac.org/forum/u/user_63)\
**Post date:** [October 5, 2018, 8:23am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/2 "2018-10-05T08:23:29Z")

</div>

Hi

did you use a user fortran?

regards

---

<div class="post-metadata">

**Author:** ![user\_12315](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/b3f665/32.png) [@user\_12315](https://opentelemac.org/forum/u/user_12315)\
**Post date:** [October 5, 2018, 9:25am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/3 "2018-10-05T09:25:55Z")

</div>

hi,

thanks for the reply.

I compiled openTelemac in linux using gfortran.

i’m running tomawac in parallel. unfortunately, the results of the parallel computation do not match the reuslts of the scalar computation( single processor).

The results of the scalar computation are correct whereas the results of the parallel computation are completely wrong.

If you can provied any help i would be grateful to you.

I attached my systel.cfg file

[systel.cfg](https://opentelemac.org/forum/uploads/short-url/l6NqDJWpfiv5zL9gziwbA7ILqlo.cfg) (1.58 KB)

---

<div class="post-metadata">

**Author:** ![user\_63](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/c4cdca/32.png) [@user\_63](https://opentelemac.org/forum/u/user_63)\
**Post date:** [October 5, 2018, 10:07am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/4 "2018-10-05T10:07:58Z")

</div>

Hi

You didn’t answer to my question ! 😠

In your computation, did you use a “user fortran”?

Did you check the Tomawac example runs in scalar and parallel correctly?

Regards

---

<div class="post-metadata">

**Author:** ![user\_12315](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/b3f665/32.png) [@user\_12315](https://opentelemac.org/forum/u/user_12315)\
**Post date:** [October 5, 2018, 10:31am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/5 "2018-10-05T10:31:48Z")

</div>

I’m sorry, I misunderstood your question.

I used a ‘user fortran’ file called ‘limwac.f’.

I took this fortran subrutine from the example [name removed].

I attached the file that I used.

R

[limwac.f](https://opentelemac.org/forum/uploads/short-url/zYN647tw3GQWRq1O3ccCNTnR3Fk.f) (14.6 KB)

---

<div class="post-metadata">

**Author:** ![user\_63](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/c4cdca/32.png) [@user\_63](https://opentelemac.org/forum/u/user_63)\
**Post date:** [October 5, 2018, 10:46am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/6 "2018-10-05T10:46:21Z")

</div>

Did you check the example [name removed] works in scalar and in parallel with correct results?

I had a brief look to this example and it seems there is no parallel run of this case during the validation process…

---

<div class="post-metadata">

**Author:** ![user\_12315](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/b3f665/32.png) [@user\_12315](https://opentelemac.org/forum/u/user_12315)\
**Post date:** [October 5, 2018, 10:57am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/7 "2018-10-05T10:57:58Z")

</div>

the example of Manche run in parallel give results that are good.

I have to do somethings of particular for work in parallel?

[name removed]

---

<div class="post-metadata">

**Author:** ![user\_63](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/c4cdca/32.png) [@user\_63](https://opentelemac.org/forum/u/user_63)\
**Post date:** [October 5, 2018, 11:54am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/8 "2018-10-05T11:54:57Z")

</div>

Sometimes it could be necessary take care about parallelism because node numbering change but if it works in the [name removed] case, this means this should be ok on this point…

I don’t have any other idea

regards

---

<div class="post-metadata">

**Author:** ![user\_8473](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/8c91f0/32.png) [@user\_8473](https://opentelemac.org/forum/u/user_8473)\
**Post date:** [October 8, 2018, 9:46am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/9 "2018-10-08T09:46:12Z")

</div>

Hello

If you had good results with case manche in parallel that means you were very lucky. Normally it does not work correctly in parallel because of nodes numbering.

You fill find an example of using function GLOBAL\_TO\_LOCAL\_POINT

to deal with paralllelism in

examples/sisyphe/littoral/Tom\_user\_fortran/bord\_wac.f

hope it helps.

---

<div class="post-metadata">

**Author:** ![user\_12315](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/b3f665/32.png) [@user\_12315](https://opentelemac.org/forum/u/user_12315)\
**Post date:** [October 10, 2018, 12:26pm UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/10 "2018-10-10T12:26:45Z")

</div>

hi,

i tryed to follow the example and i wrote this subroutine for my case.

The results are bad.

what i wrong?

[bord\_wac.f](https://opentelemac.org/forum/uploads/short-url/sHf7iBYhl4pQJ013yfueRvOpSuP.f) (1.95 KB)  
[limwac\_2018-10-10.f](https://opentelemac.org/forum/uploads/short-url/bCzQqGAOV1hjmgWbv04YGQKgUsZ.f) (14.8 KB)

---

<div class="post-metadata">

**Author:** ![user\_8473](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/8c91f0/32.png) [@user\_8473](https://opentelemac.org/forum/u/user_8473)\
**Post date:** [October 17, 2018, 8:38am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/11 "2018-10-17T08:38:13Z")

</div>

Hello

From what i see in your fortran user, littoral should not be an example for you. I think you can do something simpler. Can you send your full case i will see what can be done from it.

[name removed]

---

<div class="post-metadata">

**Author:** ![user\_12315](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/b3f665/32.png) [@user\_12315](https://opentelemac.org/forum/u/user_12315)\
**Post date:** [October 17, 2018, 10:36am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/12 "2018-10-17T10:36:05Z")

</div>

Hi!

Thanks for the reply!

I attached to you the folder with all my file.

There is the tomawac cas file. Inside there is also the telemac2d for the coupling but don’t work very well…

if you have to ask me somethings i’m here.

R

[prova\_forum.rar](https://opentelemac.org/forum/uploads/short-url/ixgXMCQQTAqAB9pOEDQF7l8QinM.rar) (1.51 MB)

---

<div class="post-metadata">

**Author:** ![user\_8473](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/8c91f0/32.png) [@user\_8473](https://opentelemac.org/forum/u/user_8473)\
**Post date:** [October 31, 2018, 4:48pm UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/13 "2018-10-31T16:48:10Z")

</div>

Hello

I worked on the user\_fortran limwac of case [name removed] to make it works in parallel (not pushed yet). Seeing your case, it should work with you.

I attach the file …

Hope it helps

[name removed]

[limwac\_2018-10-31.f](https://opentelemac.org/forum/uploads/short-url/dEgvc8zpWZEYJppHI2cmpvaE0xL.f) (12.7 KB)

---

<div class="post-metadata">

**Author:** ![user\_8473](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/8c91f0/32.png) [@user\_8473](https://opentelemac.org/forum/u/user_8473)\
**Post date:** [October 31, 2018, 4:50pm UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/14 "2018-10-31T16:50:13Z")

</div>

sorry wrong file

[limwac\_2018-10-31-2.f](https://opentelemac.org/forum/uploads/short-url/oR3VmkRDs1H4ip08DK1oe49IZKd.f) (12.6 KB)

---

<div class="post-metadata">

**Author:** ![user\_12315](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/b3f665/32.png) [@user\_12315](https://opentelemac.org/forum/u/user_12315)\
**Post date:** [November 6, 2018, 10:39am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/15 "2018-11-06T10:39:25Z")

</div>

Hi,

Thanks a lot!

Now the [name removed] case works very fine in parallel!

Thank you!

Now I would try coupl whit telemac3d in parallel! I will say to you if I will succeed.

R

---

<div class="post-metadata">

**Author:** ![user\_12315](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/b3f665/32.png) [@user\_12315](https://opentelemac.org/forum/u/user_12315)\
**Post date:** [November 8, 2018, 11:43am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/16 "2018-11-08T11:43:13Z")

</div>

hi,

I tryed to use the file limwac for the parallel in my case but the results are very bad.

Why it don’t work when i change the geometry file and the relative file .lar??

[name removed]

[bc\_h3.cli](https://opentelemac.org/forum/uploads/short-url/nQyznau0YjNL3PVBzoaNJdiMPhl.cli) (530 KB)  
[genova\_tomawac.cas](https://opentelemac.org/forum/uploads/short-url/n3LnnBHlHoNCRudwelPs8x4qxC3.cas) (2.11 KB)  
[limwac\_parallel.f](https://opentelemac.org/forum/uploads/short-url/fehG3NCN2PsnbG3Mi75hPc84Ov3.f) (15.3 KB)

---

<div class="post-metadata">

**Author:** ![user\_12315](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/b3f665/32.png) [@user\_12315](https://opentelemac.org/forum/u/user_12315)\
**Post date:** [November 8, 2018, 11:47am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/17 "2018-11-08T11:47:29Z")

</div>

these are all the files.

[genova\_splash.rar](https://opentelemac.org/forum/uploads/short-url/37aowxmcefBWXMXw40ZCB9sDlGb.rar) (1.02 MB)

---

<div class="post-metadata">

**Author:** ![user\_8473](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/8c91f0/32.png) [@user\_8473](https://opentelemac.org/forum/u/user_8473)\
**Post date:** [November 8, 2018, 5:21pm UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/18 "2018-11-08T17:21:48Z")

</div>

Hello,

I think that the problem comes from your file mareggiata170.lar we do not follow the same logic. Try to change the points recorded. 106 instead of 100 and 5140 instead of 5150 (they are extremity of your boundary condition 5 4 4). otherwise the interpolation is not good.

Hope it helps

T.

---

<div class="post-metadata">

**Author:** ![user\_12315](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/b3f665/32.png) [@user\_12315](https://opentelemac.org/forum/u/user_12315)\
**Post date:** [November 9, 2018, 10:02am UTC](https://opentelemac.org/forum/t/parallel-version-problem/5226/19 "2018-11-09T10:02:02Z")

</div>

Hi,

mareggiata170.lar is built in the same way of the file lar of manche example.

The results are very good in scalar mode but not in parallel.

I don’t think is this the problem. However I’m trying now.

[name removed]
