-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Macros fixes and diag_type fix #396
Changes from 2 commits
5bbe517
2078b88
af3d93e
2265b49
9933dba
dba0d3f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -65,14 +65,14 @@ ifeq ($(ICE_THREADED), true) | |||||||||||||||||||
endif | ||||||||||||||||||||
|
||||||||||||||||||||
### if using parallel I/O, load all 3 libraries. PIO must be first! | ||||||||||||||||||||
ifeq ($(IO_TYPE), pio) | ||||||||||||||||||||
ifeq ($(ICE_IOTYPE), pio) | ||||||||||||||||||||
PIO_PATH:=/glade/u/apps/ch/opt/pio/2.2/mpt/2.15f/intel/17.0.1/lib | ||||||||||||||||||||
INCLDIR += -I/glade/u/apps/ch/opt/pio/2.2/mpt/2.15f/intel/17.0.1/include | ||||||||||||||||||||
SLIBS := $(SLIBS) -L$(PIO_PATH) -lpiof | ||||||||||||||||||||
|
||||||||||||||||||||
CPPDEFS := $(CPPDEFS) -Dncdf | ||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just realized these lines can simply be deleted as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CICE/configuration/scripts/cice.build Lines 120 to 128 in b5134ad
|
||||||||||||||||||||
endif | ||||||||||||||||||||
|
||||||||||||||||||||
ifeq ($(IO_TYPE), netcdf) | ||||||||||||||||||||
ifeq ($(ICE_IOTYPE), netcdf) | ||||||||||||||||||||
CPPDEFS := $(CPPDEFS) -Dncdf | ||||||||||||||||||||
endif | ||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just realized this conditional can simply be deleted as |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,21 +52,21 @@ LIB_MPI := $(IMPILIBDIR) | |
#SLIBS := -L$(LIB_NETCDF) -lnetcdff -lnetcdf -L$(LIB_PNETCDF) -lpnetcdf -lgptl | ||
SLIBS := -L$(LIB_NETCDF) -lnetcdff -lnetcdf | ||
|
||
ifeq ($(compile_threaded), true) | ||
ifeq ($(ICE_THREADED), true) | ||
LDFLAGS += -openmp | ||
CFLAGS += -openmp | ||
FFLAGS += -openmp | ||
endif | ||
|
||
### if using parallel I/O, load all 3 libraries. PIO must be first! | ||
ifeq ($(IO_TYPE), pio) | ||
ifeq ($(ICE_IOTYPE), pio) | ||
PIO_PATH:=/glade/u/apps/ch/opt/pio/2.2/mpt/2.15f/intel/17.0.1/lib | ||
INCLDIR += -I/glade/u/apps/ch/opt/pio/2.2/mpt/2.15f/intel/17.0.1/include | ||
SLIBS := $(SLIBS) -L$(PIO_PATH) -lpiof | ||
|
||
CPPDEFS := $(CPPDEFS) -Dncdf | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same thing, these lines can be deleted |
||
endif | ||
|
||
ifeq ($(IO_TYPE), netcdf) | ||
ifeq ($(ICE_IOTYPE), netcdf) | ||
CPPDEFS := $(CPPDEFS) -Dncdf | ||
endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same thing, these lines can be deleted |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,21 +52,21 @@ LIB_MPI := $(IMPILIBDIR) | |
#SLIBS := -L$(LIB_NETCDF) -lnetcdff -lnetcdf -L$(LIB_PNETCDF) -lpnetcdf -lgptl | ||
SLIBS := -L$(LIB_NETCDF) -lnetcdff -lnetcdf | ||
|
||
ifeq ($(compile_threaded), true) | ||
ifeq ($(ICE_THREADED), true) | ||
LDFLAGS += -openmp | ||
CFLAGS += -openmp | ||
FFLAGS += -openmp | ||
endif | ||
|
||
### if using parallel I/O, load all 3 libraries. PIO must be first! | ||
ifeq ($(IO_TYPE), pio) | ||
ifeq ($(ICE_IOTYPE), pio) | ||
PIO_PATH:=/glade/u/apps/ch/opt/pio/2.2/mpt/2.15f/intel/17.0.1/lib | ||
INCLDIR += -I/glade/u/apps/ch/opt/pio/2.2/mpt/2.15f/intel/17.0.1/include | ||
SLIBS := $(SLIBS) -L$(PIO_PATH) -lpiof | ||
|
||
CPPDEFS := $(CPPDEFS) -Dncdf | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same thing, these lines can be deleted |
||
endif | ||
|
||
ifeq ($(IO_TYPE), netcdf) | ||
ifeq ($(ICE_IOTYPE), netcdf) | ||
CPPDEFS := $(CPPDEFS) -Dncdf | ||
endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same thing, these lines can be deleted |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,21 +52,21 @@ LIB_MPI := $(IMPILIBDIR) | |
#SLIBS := -L$(LIB_NETCDF) -lnetcdff -lnetcdf -L$(LIB_PNETCDF) -lpnetcdf -lgptl | ||
SLIBS := -L$(LIB_NETCDF) -lnetcdff -lnetcdf | ||
|
||
ifeq ($(compile_threaded), true) | ||
ifeq ($(ICE_THREADED), true) | ||
LDFLAGS += -openmp | ||
CFLAGS += -openmp | ||
FFLAGS += -openmp | ||
endif | ||
|
||
### if using parallel I/O, load all 3 libraries. PIO must be first! | ||
ifeq ($(IO_TYPE), pio) | ||
ifeq ($(ICE_IOTYPE), pio) | ||
PIO_PATH:=/glade/u/apps/ch/opt/pio/2.2/mpt/2.15f/intel/17.0.1/lib | ||
INCLDIR += -I/glade/u/apps/ch/opt/pio/2.2/mpt/2.15f/intel/17.0.1/include | ||
SLIBS := $(SLIBS) -L$(PIO_PATH) -lpiof | ||
|
||
CPPDEFS := $(CPPDEFS) -Dncdf | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same thing, these lines can be deleted |
||
endif | ||
|
||
ifeq ($(IO_TYPE), netcdf) | ||
ifeq ($(ICE_IOTYPE), netcdf) | ||
CPPDEFS := $(CPPDEFS) -Dncdf | ||
endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same thing, these lines can be deleted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in that case it would be nice to also output the path to the log file for easy (<middle click path> +
vi <middle click>
) access