CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Share large database among multiple processors (https://www.cfd-online.com/Forums/openfoam-programming-development/222546-share-large-database-among-multiple-processors.html)

K.FF November 28, 2019 09:03

Share large database among multiple processors
 
Hi,


I'm writing a program that needs to read a database at run time.It reads the database per core while running in parallel,resulting in a large amount of memory when running on 36 processors.

This part of the program's data is stored in a PtrList<> object and fixed.

My question is whether it is possible for other threads to access the master processor's object to sharing the same data.

Thanks for all Suggestions and comments
K.FF


All times are GMT -4. The time now is 23:19.