You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got during compilation of awiesm-2.6-recom these warnings and errors:
/work/ab0995/a270105/esm_code/awiesm-2.6-recom/fesom-2.6/src/associate_part_def.h(1): warning #5117: Bad # preprocessor line
#if defined(__recom) && defined(__usetp)
-^
/work/ab0995/a270105/esm_code/awiesm-2.6-recom/fesom-2.6/src/associate_part_ass.h(1): warning #5117: Bad # preprocessor line
#if defined(__recom) && defined(__usetp)
-^
`/work/ab0995/a270105/esm_code/awiesm-2.6-recom/fesom-2.6/src/associate_part_ass.h(2): error #6460: This is not a component name that is defined in the encompassing structure. [MPI_COMM_FESOM_WORLD]
MPI_COMM_FESOM_WORLD => partit%MPI_COMM_FESOM_WORLD
----------------------------------------------^
/work/ab0995/a270105/esm_code/awiesm-2.6-recom/fesom-2.6/src/associate_part_ass.h(2): error #6795: The target must be of the same type and kind type parameters as the pointer. [MPI_COMM_FESOM_WORLD]
MPI_COMM_FESOM_WORLD => partit%MPI_COMM_FESOM_WORLD
^
MPI_COMM_FESOM_WORLD should be defined as pointer under this condition #if defined(__recom) && defined(__usetp). But by default __usetp is not defined and MPI_COMM_FESOM_WORLD should be not defined or used at all. I can compile and run the model on albedo as ocean-only. Are there issues with directives in fesom-2.6 reported? Shall I try with another compiler? I am using a branch 'awiesm-2.6-recom' which I created from the release version of esm-tools.
The text was updated successfully, but these errors were encountered:
a270105
changed the title
compilation of awiesm-2.6-recom
compilation error of awiesm-2.6-recom
Feb 7, 2025
This doesn't seem like an ESM-Tools issue to me as it is failing in compilation and the question is probably more for FESOM developers. But maybe @ackerlar has a better idea of what's going on.
One solution recommended was to check if the variable is already allocated:
if (allocated(partit%remPtr_nod2D)) then
remPtr_nod2D (1:npes) => partit%remPtr_nod2D(:)
end if
but this is a FESOM issue to solve. Maybe one could switch to another compiler but maybe these errors are there for a reason? And we could try to come up with FESOM code that is suitable for any compiler?
I got during compilation of awiesm-2.6-recom these warnings and errors:
MPI_COMM_FESOM_WORLD should be defined as pointer under this condition
#if defined(__recom) && defined(__usetp)
. But by default __usetp is not defined and MPI_COMM_FESOM_WORLD should be not defined or used at all. I can compile and run the model on albedo as ocean-only. Are there issues with directives in fesom-2.6 reported? Shall I try with another compiler? I am using a branch 'awiesm-2.6-recom' which I created from the release version of esm-tools.The text was updated successfully, but these errors were encountered: