Multiple Instances of Dispersion Curve Computation-Problem

Place here all posts related to implementation and source codes. This forum is rather technical and reserved for programmers.
deconv
Posts: 3
Joined: Mon Dec 13, 2010 5:19 am

Multiple Instances of Dispersion Curve Computation-Problem

Postby deconv » Wed Aug 05, 2015 5:10 am

Hi,

I am trying to use dispersion curve computation tools (call dispersion_curve_init, call dispersion_curve_rayleigh) in a parallel (multiple instances) Fortran 90 code. Before this, I managed to compile and succesfuly run the example - main.f without issues on a single core

However, once I compile and run the multi-core one, I get the following warning "Only one instance of Application or ApplicationCore is allowed", and the program crashes.

Is there a way to overcome this? Any suggestion is welcome.

Regards

admin
Site Admin
Posts: 407
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Re: Multiple Instances of Dispersion Curve Computation-Problem

Postby admin » Thu Aug 17, 2017 11:36 am

Hi,

Normally call dispersion_curve_rayleigh is re-entrant and thus thread-safe
call dispersion_curve_init cannot be called several times (e.g. by several threads).
Can you try putting the init function before forking your multiple threads?

Marc

PS: answer is probably a bit late but just in case ...


Return to “Developer's corner”

Who is online

Users browsing this forum: No registered users and 1 guest