- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HELP! A problem about CXML provided Iterative Solver
Hi, I'm greenhand at fortran programming. I have encounter some problems when I try to use CXML provided Iterative Solver to solve linear system. The detail as follows:
When I compile the CXML provided sample progrm "EXAMPLE_ITSOL_5.F"(at X:Program FilesMicrosoft Visual StudioDF98CXMLSAMPLES, X is the VF install driver), the VF6.6 report:"Error: The attributes of this name conflict with those made accessible by a USE statement. [DMATVEC_DRIVER]. The corresponding sentence is:
EXTERNAL DMATVEC_DRIVER, DPCONDL_DRIVER, DPCONDR_DRIVER
The "DMATVEC_DRIVER, DPCONDL_DRIVER, DPCONDR_DRIVER" are CXML library subroutines, and must be defined as External.
How to modify the program?
THANKS!
P.S. I have added the "include 'cxml_include'" sentence
Hi, I'm greenhand at fortran programming. I have encounter some problems when I try to use CXML provided Iterative Solver to solve linear system. The detail as follows:
When I compile the CXML provided sample progrm "EXAMPLE_ITSOL_5.F"(at X:Program FilesMicrosoft Visual StudioDF98CXMLSAMPLES, X is the VF install driver), the VF6.6 report:"Error: The attributes of this name conflict with those made accessible by a USE statement. [DMATVEC_DRIVER]. The corresponding sentence is:
EXTERNAL DMATVEC_DRIVER, DPCONDL_DRIVER, DPCONDR_DRIVER
The "DMATVEC_DRIVER, DPCONDL_DRIVER, DPCONDR_DRIVER" are CXML library subroutines, and must be defined as External.
How to modify the program?
THANKS!
P.S. I have added the "include 'cxml_include'" sentence
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The error message suggests that DMATVEC_DRIVER is declared twice -- once in module CXML, another time as EXTERNAL. Deleting the EXTERNAL line would probably solve it.
Jugoslav
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your adding the INCLUDE line is what triggered the problem, as this example was written assuming it wasn't there.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank all guys for reply.
Remove the "External" declaration can't settle this problem, because those routine-name was regard as variable of another subroutine and must be declared to EXTERNAL.
If NOT adding the include sentence, these CXML library provided routines such as "DMATVEC_UDIA, DCREATE_ILU_UDIA ..." will be unresolved, however, adding it will bring conflict.
How to altering this program can avoid this paradox?
THANKS
Remove the "External" declaration can't settle this problem, because those routine-name was regard as variable of another subroutine and must be declared to EXTERNAL.
If NOT adding the include sentence, these CXML library provided routines such as "DMATVEC_UDIA, DCREATE_ILU_UDIA ..." will be unresolved, however, adding it will bring conflict.
How to altering this program can avoid this paradox?
THANKS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As this example was written, you must explicitly name cxml.lib when you link.
If you wish to use the INCLUDE, you must make the following changes:
Remove DMATVEC_DRIVER from the EXTERNAL declaration.
Change the declaration of DUM to be DUM(1).
Steve
If you wish to use the INCLUDE, you must make the following changes:
Remove DMATVEC_DRIVER from the EXTERNAL declaration.
Change the declaration of DUM to be DUM(1).
Steve

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