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.
Post Reply
deconv
Posts: 3
Joined: Mon Dec 13, 2010 5:19 am

Multiple Instances of Dispersion Curve Computation-Problem

Post by deconv »

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: 804
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Re: Multiple Instances of Dispersion Curve Computation-Problem

Post by admin »

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 ...
Post Reply