- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I am trying to install the MEGAN model (a model to estimate natural emissions) to a cluster system with intel compilers 9.1.052, ioapi 3.0 and netcdf 3.6.2. I have been using these libraries successfully with other model i am running such as wrf and cmaq (cmaq uses both netcdf and ioapi) but with megan model, i keep getting the error messages attached
can you help me to fix this please?
Thanks
Ulas
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
i was able to fix the undefined reference errors by adding -openmp -lpthread flags. however i still have problems with the fortcom errors:
any ideas?
thanks
fortcom: Error: ckgdioapi2d.f, line 103: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [VGLVS1]
ALLOCATE ( VGLVS1 ( NLAYS1 + 1 ), STAT = STATUS )
--------------------^
fortcom: Error: ckgdioapi2d.f, line 131: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [VGLVS2]
ALLOCATE ( VGLVS2 ( NLAYS2 + 1 ), STAT = STATUS )
--------------------^
fortcom: Error: ckgdioapi2d.f, line 54: If a deferred-shape array is intended, then the ALLOCATABLE or POINTER attribute is missing; if an assumed-shape array is intended, the array must be a dummy argument. [VGLVS1]
REAL :: VGLVS1( : ) ! vertical coordinate values
-----------------^
fortcom: Error: ckgdioapi2d.f, line 73: If a deferred-shape array is intended, then the ALLOCATABLE or POINTER attribute is missing; if an assumed-shape array is intended, the array must be a dummy argument. [VGLVS2]
REAL :: VGLVS2( : ) ! vertical coordinate values
-----------------^
compilation aborted for ckgdioapi2d.f (code 1)
make: *** [ckgdioapi2d.o] Error 1
fortcom: Error: ckgdioapi2d.f, line 103: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [VGLVS1] ALLOCATE ( VGLVS1 ( NLAYS1 + 1 ), STAT = STATUS )--------------------^fortcom: Error: ckgdioapi2d.f, line 131: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [VGLVS2] ALLOCATE ( VGLVS2 ( NLAYS2 + 1 ), STAT = STATUS )--------------------^fortcom: Error: ckgdioapi2d.f, line 54: If a deferred-shape array is intended, then the ALLOCATABLE or POINTER attribute is missing; if an assumed-shape array is intended, the array must be a dummy argument. [VGLVS1] REAL :: VGLVS1( : ) ! vertical coordinate values-----------------^fortcom: Error: ckgdioapi2d.f, line 73: If a deferred-shape array is intended, then the ALLOCATABLE or POINTER attribute is missing; if an assumed-shape array is intended, the array must be a dummy argument. [VGLVS2] REAL :: VGLVS2( : ) ! vertical coordinate values-----------------^compilation aborted for ckgdioapi2d.f (code 1)make: *** [ckgdioapi2d.o] Error 1- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ulas,
How are declaring VGLVS1 and VGLVS2?
Regards,
Steve Daily
Intel Developer Support
How are declaring VGLVS1 and VGLVS2?
Regards,
Steve Daily
Intel Developer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ulas,
A colleague was kind enough to point out that the declaration is listed in the error
messages. Here is his suggestion on how to correct the problem:
Hes got the declarations shown. What hes missing is the allocatable declaration:
REAL, ALLOCATABLE :: VGLVS1(:)
Regards,
Steve D.
Intel Developer Support
A colleague was kind enough to point out that the declaration is listed in the error
messages. Here is his suggestion on how to correct the problem:
Hes got the declarations shown. What hes missing is the allocatable declaration:
REAL, ALLOCATABLE :: VGLVS1(:)
Regards,
Steve D.
Intel Developer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
... unless VGLVS1 is supposed to be a dummy argument. If it's a local variable, then adding ALLOCATABLE would be reasonable.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page