I am writing for a little question about the usage of MPI and OMP in Code Saturne 7.1-alpha. At present, I usually run CS on my laptop within a virtual machine, which has a 8 cores 16 threads CPU, and 8G ram. My computation, or work is easy somehow. I only need to set one time step for a transient situation.
My purpose is to run CS with OMP alone, means no MPI. The reasons are simply. My program skills about MPI is far away for usage, and my ram is relatively insufficient for MPI. I have tried once, when I put some test codes in some SRC files, where I set one core and one thread in GUI. I include the omp.h, and use
Code: Select all
omp_set_num_threads(16);
#pragma omp parallel for
{
for (int cell_id = 0;......)
}
So I am eager to know that, if there is any chance I can use openmp to complete my computation alone? Thus I can save time for assigning values to cells due to physical model. Generally, the computation time is much less than the pre-stage.
And also a little bug report. In the latest github version, there is a little error, in file cs_rad_transfer_fsck.c, line 1241
Code: Select all
kfsk[i] /= 100.0;
to be
kfsk[i] *= 100.0;
Thanks for your any generous help.