2
! Copyright (C) 1996-2016 The SIESTA group
3
! This file is distributed under the terms of the
4
! GNU General Public License: see COPYING in the top directory
5
! or http://www.gnu.org/copyleft/gpl.txt .
6
! See Docs/Contributors.txt for a list of contributors.
10
use pseudopotential, only: pseudopotential_t, pseudo_write_formatted
11
use m_pseudo_types, only: pseudo_t
12
use m_pseudo, only: begin_element, end_element, pcdata_chunk
13
use m_pseudo, only: pseudo ! Shared structure
14
use flib_sax, only: xml_t, open_xmlfile, xml_parse
18
type(pseudopotential_t) :: p
19
type(pseudo_t), pointer :: psxml
24
call open_xmlfile("PSXML",fxml,iostat)
25
if (iostat /=0) stop "Cannot open file"
27
call xml_parse(fxml, begin_element,end_element,pcdata_chunk,verbose=.false.)
31
call xml2psf_helper( psxml, p )
32
call pseudo_write_formatted("PSF",p)