|June 25, 2012, 18:55||
Join Date: Jan 2010
Posts: 44Rep Power: 7
I am using parallel computing for OpenFOAM and some FORTRAN subroutines are called by OF during computation. But, it's found that the errors occur when any Fortran subroutine (say my_test(a)) is called where a is defined as "double a[nCells]". The interesting is that it's no problem for calling it if a single processor is used. Any idea for this problem?
Last edited by Argen; June 28, 2012 at 12:43.
|June 28, 2012, 17:07||
Join Date: Mar 2009
Location: Lisbon, Portugal
Blog Entries: 34Rep Power: 92
OK, the reason why it works in serial mode, but not in parallel, is very likely because "nCells" refers to the whole mesh and not the local processor's mesh only.
Uhm... I know there are applications in OpenFOAM that have similar needs, for both serial and parallel execution...
Sorry, I can't find any in a short period of time. You'll have to check the existing "applications" folder and see directly what code already exists that can do this.
The "applications/test" folder has many times true pearls of wisdom!
Here's an example that might be a good hint for what you're looking for - "applications/test/router/Test-processorRouter.C":
// Collect centres of individual meshes (for visualization only) Gather<point> meshCentres(meshCentre(mesh));
Best regards and good luck!
|Thread||Thread Starter||Forum||Replies||Last Post|
|unchangeable continuity residuals in parallel computing||wlt_1985||FLUENT||0||August 1, 2011 12:15|
|Diffusion equation solved using Parallel Computing||Sachin Paramane||Main CFD Forum||0||June 11, 2007 23:48|
|Parallel Computing on Multi-Core Processors||Upgrading Hardware||CFX||6||June 7, 2007 15:54|
|Parallel Computing||peter||Main CFD Forum||7||May 15, 2006 09:53|
|Parallel Computing Classes at San Diego Supercomputer Center Jan. 20-22||Amitava Majumdar||Main CFD Forum||0||January 5, 1999 13:00|