Skip to content

Unable to install CitcomS 3.3.0 with GGRD support due to missing HC files #16

@mekeshavsharma

Description

@mekeshavsharma

Installation issue:

I am trying to install CitcomS 3.3.0 with GGRD support (and without HDF5), so I can link my temp etc files (e.g., t1.grd) to my CitcomS input file. As per the manual, for GGRD installation, HC is required, which in turn requires GMT and NetCDF. I installed GMT and NetCDF, and successfully installed HC 1.0.0 on my HPC system.

However, when configuring CitcomS 3.3.0, everything seems fine:

CC:  mpicc
CFLAGS:  -g -O2
CPPFLAGS:  -DUSE_GZDIR -I/home/iitjmu81285/software/HC-1.0.0/include -I/apps/codes/netcdf-c/4.9.2/include -I/home/iitjmu81285/software/gmt-4.5.18/include -I/home/iitjmu81285/software/HC-1.0.0 -DUSE_GGRD
LDFLAGS:  -L/home/iitjmu81285/software/HC-1.0.0/lib -L/apps/codes/netcdf-c/4.9.2/lib -L/home/iitjmu81285/software/gmt-4.5.18/lib -L/home/iitjmu81285/software/HC-1.0.0/objects/x86_64
LIBS:  -lm -lggrd -lgmt -lnetcdf -lz -lhdf5
with-hdf5:  no
with-ggrd:  yes

But during make, I get errors like:

In file included from BC_util.c:29:
global_defs.h:531:22: error: field ‘ggrd’ has incomplete type
  531 |   struct ggrd_master ggrd;
      |                      ^~~~
global_defs.h:536:3: error: unknown type name ‘ggrd_boolean’
  536 |   ggrd_boolean ggrd_mat_is_3d;
      |   ^~~~~~~~~~~~
BC_util.c:37:10: fatal error: ggrd_handling.h: No such file or directory
   37 | #include "ggrd_handling.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
...

It seems HC 1.0.0 is missing files/types like ggrd_boolean, ggrd_handling.h, etc. I searched for all available HC versions and couldn't find these missing files. Maybe they existed in an older version (HC 0.9), but it's not available for download, and CitcomS 3.3.0 still expects them for GGRD configuration. Alternatively, there could be another issue.

Request:

  • Please advise how to resolve this and successfully build CitcomS 3.3.0 with GGRD support.
  • Are there recommended versions of HC (or patches) that provide the necessary GGRD files and types?
  • Is there a workaround or updated instructions for this installation scenario?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions