Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
fleur
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
52
Issues
52
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
fleur
fleur
Commits
64f379bd
Commit
64f379bd
authored
Sep 02, 2016
by
Daniel Wortmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of fleur-git:fleur into develop
parents
d7189e6a
b0526f71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
io/xmlIntWrapFort.f90
io/xmlIntWrapFort.f90
+18
-9
No files found.
io/xmlIntWrapFort.f90
View file @
64f379bd
...
...
@@ -13,6 +13,8 @@
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
MODULE
m_xmlIntWrapFort
USE
m_juDFT
CONTAINS
SUBROUTINE
xmlInitInterface
()
...
...
@@ -32,7 +34,9 @@ SUBROUTINE xmlInitInterface()
errorStatus
=
0
errorStatus
=
initializeXMLInterface
()
IF
(
errorStatus
.NE.
0
)
STOP
'Error!'
IF
(
errorStatus
.NE.
0
)
THEN
CALL
juDFT_error
(
"Could not initialize XML interface."
,
calledby
=
"xmlInitInterface"
)
END
IF
END
SUBROUTINE
xmlInitInterface
...
...
@@ -58,8 +62,7 @@ SUBROUTINE xmlParseSchema(schemaFilename)
errorStatus
=
0
errorStatus
=
parseXMLSchema
(
schemaFilename
)
IF
(
errorStatus
.NE.
0
)
THEN
WRITE
(
*
,
*
)
'Parsing xml schema file '
,
TRIM
(
ADJUSTL
(
schemaFilename
))
STOP
'Error: xml Schema file not parsable!'
CALL
juDFT_error
(
"XML Schema file not parsable: "
//
TRIM
(
ADJUSTL
(
schemaFilename
)),
calledby
=
"xmlParseSchema"
)
END
IF
END
SUBROUTINE
xmlParseSchema
...
...
@@ -86,8 +89,7 @@ SUBROUTINE xmlParseDoc(docFilename)
errorStatus
=
0
errorStatus
=
parseXMLDocument
(
docFilename
)
IF
(
errorStatus
.NE.
0
)
THEN
WRITE
(
*
,
*
)
'Parsing xml document file '
,
TRIM
(
ADJUSTL
(
docFilename
))
STOP
'Error: xml document file not parsable!'
CALL
juDFT_error
(
"XML document file not parsable: "
//
TRIM
(
ADJUSTL
(
docFilename
)),
calledby
=
"xmlParseDoc"
)
END
IF
END
SUBROUTINE
xmlParseDoc
...
...
@@ -111,7 +113,7 @@ SUBROUTINE xmlValidateDoc()
errorStatus
=
0
errorStatus
=
validateXMLDocument
()
IF
(
errorStatus
.NE.
0
)
THEN
STOP
'Error: xml document does not validate!'
CALL
juDFT_error
(
"XML document cannot be validated against Schema."
,
calledby
=
"xmlValidateDoc"
)
END
IF
END
SUBROUTINE
xmlValidateDoc
...
...
@@ -134,7 +136,9 @@ SUBROUTINE xmlInitXPath()
errorStatus
=
0
errorStatus
=
initializeXPath
()
IF
(
errorStatus
.NE.
0
)
STOP
'Error!'
IF
(
errorStatus
.NE.
0
)
THEN
CALL
juDFT_error
(
"Could not initialize XPath."
,
calledby
=
"xmlInitXPath"
)
END
IF
END
SUBROUTINE
xmlInitXPath
...
...
@@ -188,7 +192,9 @@ FUNCTION xmlGetAttributeValue(xPath)
CALL
C_F_POINTER
(
c_string
,
valueFromC
,
[
255
])
IF
(
.NOT.
c_associated
(
c_string
))
THEN
STOP
'null returned!'
WRITE
(
*
,
*
)
'Error in trying to obtain attribute value from XPath:'
WRITE
(
*
,
*
)
TRIM
(
ADJUSTL
(
xPath
))
CALL
juDFT_error
(
"Attribute value could not be obtained."
,
calledby
=
"xmlGetAttributeValue"
)
END
IF
DO
i
=
1
,
255
value
(
i
:
i
)
=
valueFromC
(
i
)
...
...
@@ -217,7 +223,10 @@ SUBROUTINE xmlFreeResources()
errorStatus
=
0
errorStatus
=
freeXMLResources
()
IF
(
errorStatus
.NE.
0
)
STOP
'Error!'
IF
(
errorStatus
.NE.
0
)
THEN
CALL
juDFT_error
(
"Could not free XML resources."
,
calledby
=
"xmlFreeResources"
)
STOP
'Error!'
END
IF
END
SUBROUTINE
xmlFreeResources
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment