List of FOAM processor configurations

From Foam
Jump to navigationJump to search

NOTE: There are no other options for the atmosphere processor count (for R15) other than what is indicated.

Non-colocated

To use non-colocated, remove -DCOLOCATED_OCEAN from FOAM_OPTS and recompile.

2x2 + 1x1 = 5 total
-DOCEAN_LAT_PROCS=1\
-DOCEAN_LON_PROCS=1\
-DATMOS_LAT_PROCS=2\
-DATMOS_LON_PROCS=2\

2x4 + 1x1 = 9 total
-DOCEAN_LAT_PROCS=1\
-DOCEAN_LON_PROCS=1\
-DATMOS_LAT_PROCS=2\
-DATMOS_LON_PROCS=4\

4x4 + 1x1 = 17 total
-DOCEAN_LAT_PROCS=1\
-DOCEAN_LON_PROCS=1\
-DATMOS_LAT_PROCS=4\
-DATMOS_LON_PROCS=4\

4x8 + 1x2 = 34 total
-DOCEAN_LAT_PROCS=1\
-DOCEAN_LON_PROCS=2\
-DATMOS_LAT_PROCS=4\
-DATMOS_LON_PROCS=8\

4x16 + 2x2 = 68 total
-DOCEAN_LAT_PROCS=2\
-DOCEAN_LON_PROCS=2\
-DATMOS_LAT_PROCS=4\
-DATMOS_LON_PROCS=16\

Co-located

(ocean and atmosphere located on the same processors)

Note: Co-located requires that (OCEAN_LAT_PROCS * OCEAN_LON_PROCS) = (ATMOS_LAT_PROCS * ATMOS_LON_PROCS) and that you also set the cpp constant -DCOLOCATED_OCEAN. This is the default.

Note that you can use some other combination of ocean processors other than what is indicated as long as the rule above still holds.

2x2 = 4 total
-DOCEAN_LAT_PROCS=2\
-DOCEAN_LON_PROCS=2\
-DATMOS_LAT_PROCS=2\
-DATMOS_LON_PROCS=2\
-DCOLOCATED_OCEAN\

2x4 = 8 total
-DOCEAN_LAT_PROCS=2\
-DOCEAN_LON_PROCS=4\
-DATMOS_LAT_PROCS=2\
-DATMOS_LON_PROCS=4\
-DCOLOCATED_OCEAN\

4x4 = 16 total
-DOCEAN_LAT_PROCS=4\
-DOCEAN_LON_PROCS=4\
-DATMOS_LAT_PROCS=4\
-DATMOS_LON_PROCS=4\
-DCOLCOATED_OCEAN\

4x8 = 32 total (DEFAULT)
-DOCEAN_LAT_PROCS=4\
-DOCEAN_LON_PROCS=8\
-DATMOS_LAT_PROCS=4\
-DATMOS_LON_PROCS=8\
-DCOLCOATED_OCEAN\

4x16 = 64 total
-DOCEAN_LAT_PROCS=8\
-DOCEAN_LON_PROCS=8\
-DATMOS_LAT_PROCS=4\
-DATMOS_LON_PROCS=16\
-DCOLOCATED_OCEAN\