Merge lp:~nickpapior/siesta/4.1-md-supercell into lp:siesta/4.1

Proposed by Nick Papior
Status: Merged
Approved by: Alberto Garcia
Approved revision: 985
Merged at revision: 985
Proposed branch: lp:~nickpapior/siesta/4.1-md-supercell
Merge into: lp:siesta/4.1
Diff against target: 6723 lines (+4458/-701) (has conflicts)
50 files modified
Docs/developer/doxygen-siesta (+2484/-0)
Docs/developer/ford-pages/datastructures/1-buds.md (+59/-0)
Docs/developer/ford-pages/datastructures/2-sparse.md (+74/-0)
Docs/developer/ford-pages/datastructures/index.md (+8/-0)
Docs/developer/ford-pages/implementation/1-auxiliary-supercell.md (+133/-0)
Docs/developer/ford-pages/implementation/index.md (+6/-0)
Docs/developer/ford-pages/index.md (+11/-0)
Docs/developer/ford-siesta.md (+66/-0)
Docs/siesta.tex (+21/-29)
Src/Fstack.T90 (+1/-0)
Src/Makefile (+13/-11)
Src/Pair.T90 (+2/-0)
Src/basic_type.inc (+2/-1)
Src/class_SpData1D.T90 (+3/-0)
Src/class_SpData2D.T90 (+3/-0)
Src/class_Sparsity.F90 (+6/-1)
Src/extrae_eventllist.F90 (+1/-1)
Src/extrapolateSpData2D.F90 (+3/-3)
Src/m_handle_sparse.F90 (+815/-9)
Src/m_iodm.F90 (+26/-11)
Src/m_new_dm.F90 (+154/-71)
Src/m_sparse.F90 (+11/-0)
Src/m_supercell.F90 (+0/-166)
Src/m_test_io.F90 (+3/-2)
Src/m_ts_electype.F90 (+5/-3)
Src/m_ts_iodm.F90 (+32/-11)
Src/md_utils.f90 (+0/-40)
Src/post_scf_work.F (+2/-2)
Src/read_options.F90 (+4/-8)
Src/restructSpData2D.F90 (+67/-53)
Src/save_density_matrix.F (+5/-4)
Src/siesta_end.F (+1/-1)
Src/siesta_geom.F90 (+7/-5)
Src/siesta_init.F (+6/-17)
Src/siesta_options.F90 (+1/-3)
Src/sparse_matrices.F90 (+192/-82)
Src/spinorbit.f (+1/-1)
Src/state_init.F (+83/-56)
Util/COOP/Makefile (+13/-10)
Util/Denchar/Src/Makefile (+13/-10)
Util/Gen-basis/Makefile (+13/-10)
Util/Grimme/Makefile (+13/-10)
Util/Helpers/Makefile (+13/-10)
Util/STM/ol-stm/Src/Makefile (+13/-10)
Util/SpPivot/Makefile (+13/-10)
Util/TS/TBtrans/Makefile (+13/-10)
Util/TS/ts2ts/Makefile (+13/-10)
Util/TS/tshs2tshs/Makefile (+13/-10)
Util/VCA/Makefile (+13/-10)
version.info (+4/-0)
Text conflict in version.info
To merge this branch: bzr merge lp:~nickpapior/siesta/4.1-md-supercell
Reviewer Review Type Date Requested Status
Alberto Garcia Approve
Review via email: mp+354028@code.launchpad.net

Commit message

Fixing MD/supercell changes to the sparsity pattern, add initial developer documentation template

This fixes the remaining issue of changing the sparsity pattern while using DM extrapolation.
I.e. now the DM_history sparse matrices are aligned with the current MD-steps sparse pattern.
Additionally this change also allows reading *any* DM file which is then converted to the intrinsic
sparse pattern used by siesta. This brings forth a nice platform for creating better initial guesses
based on simpler models (e.g. use sisl to create a better guess).

Secondly, Alberto created an initial template for doing developer documentation in Siesta.
Now FORD (doxygen for testing purposes) may be used to generate documentation of the full
Siesta code!
Indeed this is extremely valuable to point new-comers to internal details in Siesta.

To post a comment you must log in.
Revision history for this message
Alberto Garcia (albertog) wrote :

For now, just a heads-up on a misbehavior of "correct_supercell" when nsc_read=(1,1,1), and a request for clarification of what the code is doing in the routine.

Revision history for this message
Alberto Garcia (albertog) wrote :

A followup to the folding corrrection. Perhaps it is useful to save also S in the DM file (it is just another "data string" which can go at the end of the file.

982. By Nick Papior

Updated description in the code for the correction of the supercell

Revision history for this message
Nick Papior (nickpapior) wrote :

1) Is it a calculation with folding that you want to initialize from? I.e. the nsc_read = (1,1,1) in this case?

2) I agree, this would be the best, to handle the overlap matrix, however, in cases where one wan't to create an initial DM from previously (separate) calculated DM it becomes too elaborate. In the end I think this is mainly a good idea from a perspective of doing manual interpolation and/or manual initialization.

As for the nsc_read == 1, I can successfully run the script I send (privately) with nsc_read == 1, without problems?
Secondly, where do you want the extra clarification to be put, in the dev-docs, or the source?
Could you check out the new commit?

Revision history for this message
Alberto Garcia (albertog) wrote :
Download full text (4.3 KiB)

> On 3 Sep 2018, at 10:21, Nick Papior <email address hidden> wrote:
>
> 1) Is it a calculation with folding that you want to initialize from? I.e. the nsc_read = (1,1,1) in this case?

Yes. Assume a user has run a calculation without k-points (and without an auxcell), and then wants to use the DM to initialize a
k-point calculation. This is what happens in the si64 example:

—————————————
Initializing Density Matrix...

Attempting to read DM from file... Succeeded...
DM from file:
<dSpData2D:IO-DM: si64.DM
  <sparsity:IO-DM: si64.DM
    nrows_g=256 nrows=136 sparsity=.4275 nnzs=28016, refcount: 1>
  <dData2D:(new from dSpData2D) n=28016 m=1, refcount: 1>
refcount: 1>
Note: For starting DM, Qtot, Tr[D*S] = 256.00000000 229.72632220
—————————————

This is a calculation with “normal” folding, i.e. only edge image interactions, but no direct diagonal images, so that S(i,i) = 1.0.

The missing norm is coming (or not coming…) from the zeros in the supercell DM.

Later on:

———————————
        iscf Eharris(eV) E_KS(eV) FreeEng(eV) dDmax Ef(eV) dHmax(eV)
   scf: 1 10293.156932 -1324.422347 -1324.455994 3.337586 -3.198437142.619752
timer: Routine,Calls,Time,% = IterSCF 1 4.132 80.76
   scf: 2 35111.572145 3756.559710 3756.553850 4.416191 -2.224851288.324694
   scf: 3 -1549.974918 444.670819 444.641579 3.270160 -2.128185164.985102
   scf: 4 -5371.294656 -2706.434665 -2706.485243 1.485187 -2.565191125.811367
   scf: 5 18837.075132 -728.224618 -728.241614 4.270983 -3.174556153.635637
   scf: 6 -8033.559239 -5034.599795 -5034.645848 2.447968 -2.942511 88.795877
   scf: 7 -7165.186747 -6839.938924 -6839.938924 2.852955 -2.675640 4.831900
   scf: 8 -6836.790121 -6839.363374 -6839.363374 0.078137 -2.668903 4.867
…..
————————

Note that, for k=0, even in extreme folding cases, the DM has a very simple structure, and is NOT folded. Only H and S are actually folded. ALL the image elements of the DM are the same as those in the unit-cell square matrix. This is the code in diagg:

                do j = 1,numd(io)
                  ind = listdptr(io) + j
                  jo = listd(ind)
                  jo = MODP(jo,nuotot) ! To allow auxiliary supercells
                  Dnew(ind,ispin) = Dnew(ind,ispin) + qei*paux(jo)
                  Enew(ind,ispin) = Enew(ind,ispin) + eei*paux(jo)
                enddo

So all the entries (arbitrary “ind”) have the same value as those in the “fold-to” corner of the rectangular DM.

To get back the missing norm approximately in the nsc_read= (1,1,1) case, one then could do:

  foreach non-zero extended S entry “ind_new” in the new, full-nsc supercell:
       find the io,jo entry in the read DM, and copy the entry to the new DM.

It might be easier to reverse the logic and just “un-fold” the read DM, with a loop very similar to the above.

Of course, it is simpler to run the k=0 calculation with “force-auxcell”, but this change looks simple, and will add functionality.

The handling of intermediate cases, when nsc_read is a “s...

Read more...

Revision history for this message
Nick Papior (nickpapior) wrote :

I am not sure everything is as easy as it seems.

1) For the si64 case you say that the connections are all "singly counted", i.e. there are no connections that are summed twice. In this case the missing charges are most likely coming from the periodic charge distribution. However, what if the user changes the basis range which then adds more interactions? I.e. how does Siesta knows if the generated sparse pattern is not generated as the primary unit-cell charge *only*? For now I have added a flag called DM.Init.Unfold which is default to true. If one knows the DM stems from a different initialization field one can set this to false.

2) As for MD simulations, yes, this is another problem...

983. By Nick Papior

Implemented a Gamma-only sparse pattern extrapolator

When starting from a DM originating from a Gamma-only calculation the only elements that
exists are elements that "looks" like they exist in the primary unit cell. However,
they in fact correspond to supercell connections. Now the code will try and unfold
the Gamma-only calculation DM elements to the supercell format by copying the elements
multiple times (this comes from the fact that the DM is a Gamma-only with auxiliary cell
has the same DM elements for all orbital connections).

There are cases where this does not hold, e.g. when users create their own initial DM, in those
cases one can use the flag: DM.Init.Unfold false to disable the unfolding.

Revision history for this message
Nick Papior (nickpapior) wrote :

I have added the fix for 1). Now si64 runs very nice when changing from no-auxcell to force-auxcell.

984. By Nick Papior

Implemented auxiliary cell to Gamma-only sparse pattern folding mechanism

When starting from a DM originating from a supercell calculation, and
performing a Gamma-only calculation, then connections may be doubled when
io,jo == io,io where jo is the supercell orbital.
This should equate to summing the DM contributions for all equal orbitals.

This is now implemented and tested for the si64 system
1. no auxiliary cell
2. auxiliary, init with DM from 1.
3. no auxiliary, init with DM from 2.

985. By Nick Papior

Merged Alberto's documentation updates (clarifications)

Revision history for this message
Nick Papior (nickpapior) wrote :

Bump thread :)

Revision history for this message
Nick Papior (nickpapior) wrote :

Marked lp:~albertog/siesta/4.1-supercell-docs as merged! Revert mark if dev is continued there. :)

Revision history for this message
Alberto Garcia (albertog) wrote :

We have clarified offline the issue of "folding" to a 111 supercell. What we need is actually 'copying'. A patch is going to be applied, and the merge request is approved.

review: Approve
986. By Nick Papior

Merged Alberto's fixes for DM folding

987. By Nick Papior

Applied patch for fixing folding into 000 supercells

This change has surfaced from discussion with Alberto (his fix).
This change stores the 000 element in the supercell DM, and if
this element does not exist it will store a "random" supercell DM
element. This has some problems for very small unit-cells, however,
we expect this problem to be insignificant compared to the problems it
solves.

988. By Nick Papior

Re-added the copy-supercell routines which may be useful in some utilities

For now they are removed from the actual code via pre-processor statements.

989. By Nick Papior

Updated Makefiles

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'Docs/developer'
2=== added file 'Docs/developer/doxygen-siesta'
3--- Docs/developer/doxygen-siesta 1970-01-01 00:00:00 +0000
4+++ Docs/developer/doxygen-siesta 2018-09-12 13:10:27 +0000
5@@ -0,0 +1,2484 @@
6+# Doxyfile 1.8.13
7+
8+# This file describes the settings to be used by the documentation system
9+# doxygen (www.doxygen.org) for a project.
10+#
11+# All text after a double hash (##) is considered a comment and is placed in
12+# front of the TAG it is preceding.
13+#
14+# All text after a single hash (#) is considered a comment and will be ignored.
15+# The format is:
16+# TAG = value [value, ...]
17+# For lists, items can also be appended using:
18+# TAG += value [value, ...]
19+# Values that contain spaces should be placed between quotes (\" \").
20+
21+#---------------------------------------------------------------------------
22+# Project related configuration options
23+#---------------------------------------------------------------------------
24+
25+# This tag specifies the encoding used for all characters in the config file
26+# that follow. The default is UTF-8 which is also the encoding used for all text
27+# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv
28+# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv
29+# for the list of possible encodings.
30+# The default value is: UTF-8.
31+
32+DOXYFILE_ENCODING = UTF-8
33+
34+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
35+# double-quotes, unless you are using Doxywizard) that should identify the
36+# project for which the documentation is generated. This name is used in the
37+# title of most generated pages and in a few other places.
38+# The default value is: My Project.
39+
40+PROJECT_NAME = "SIESTA"
41+
42+# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
43+# could be handy for archiving the generated documentation or if some version
44+# control system is used.
45+
46+PROJECT_NUMBER =
47+
48+# Using the PROJECT_BRIEF tag one can provide an optional one line description
49+# for a project that appears at the top of each page and should give viewer a
50+# quick idea about the purpose of the project. Keep the description short.
51+
52+PROJECT_BRIEF = "A first principles materials simulation code using Density Functional Theory"
53+
54+# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
55+# in the documentation. The maximum height of the logo should not exceed 55
56+# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
57+# the logo to the output directory.
58+
59+PROJECT_LOGO =
60+
61+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
62+# into which the generated documentation will be written. If a relative path is
63+# entered, it will be relative to the location where doxygen was started. If
64+# left blank the current directory will be used.
65+
66+OUTPUT_DIRECTORY = doc-doxygen-build
67+
68+# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
69+# directories (in 2 levels) under the output directory of each output format and
70+# will distribute the generated files over these directories. Enabling this
71+# option can be useful when feeding doxygen a huge amount of source files, where
72+# putting all generated files in the same directory would otherwise causes
73+# performance problems for the file system.
74+# The default value is: NO.
75+
76+CREATE_SUBDIRS = NO
77+
78+# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII
79+# characters to appear in the names of generated files. If set to NO, non-ASCII
80+# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode
81+# U+3044.
82+# The default value is: NO.
83+
84+ALLOW_UNICODE_NAMES = NO
85+
86+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
87+# documentation generated by doxygen is written. Doxygen will use this
88+# information to generate all constant output in the proper language.
89+# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
90+# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
91+# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
92+# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
93+# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
94+# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
95+# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
96+# Ukrainian and Vietnamese.
97+# The default value is: English.
98+
99+OUTPUT_LANGUAGE = English
100+
101+# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member
102+# descriptions after the members that are listed in the file and class
103+# documentation (similar to Javadoc). Set to NO to disable this.
104+# The default value is: YES.
105+
106+BRIEF_MEMBER_DESC = YES
107+
108+# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief
109+# description of a member or function before the detailed description
110+#
111+# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
112+# brief descriptions will be completely suppressed.
113+# The default value is: YES.
114+
115+REPEAT_BRIEF = YES
116+
117+# This tag implements a quasi-intelligent brief description abbreviator that is
118+# used to form the text in various listings. Each string in this list, if found
119+# as the leading text of the brief description, will be stripped from the text
120+# and the result, after processing the whole list, is used as the annotated
121+# text. Otherwise, the brief description is used as-is. If left blank, the
122+# following values are used ($name is automatically replaced with the name of
123+# the entity):The $name class, The $name widget, The $name file, is, provides,
124+# specifies, contains, represents, a, an and the.
125+
126+ABBREVIATE_BRIEF = "The $name class" \
127+ "The $name widget" \
128+ "The $name file" \
129+ is \
130+ provides \
131+ specifies \
132+ contains \
133+ represents \
134+ a \
135+ an \
136+ the
137+
138+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
139+# doxygen will generate a detailed section even if there is only a brief
140+# description.
141+# The default value is: NO.
142+
143+ALWAYS_DETAILED_SEC = NO
144+
145+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
146+# inherited members of a class in the documentation of that class as if those
147+# members were ordinary class members. Constructors, destructors and assignment
148+# operators of the base classes will not be shown.
149+# The default value is: NO.
150+
151+INLINE_INHERITED_MEMB = NO
152+
153+# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path
154+# before files name in the file list and in the header files. If set to NO the
155+# shortest path that makes the file name unique will be used
156+# The default value is: YES.
157+
158+FULL_PATH_NAMES = YES
159+
160+# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
161+# Stripping is only done if one of the specified strings matches the left-hand
162+# part of the path. The tag can be used to show relative paths in the file list.
163+# If left blank the directory from which doxygen is run is used as the path to
164+# strip.
165+#
166+# Note that you can specify absolute paths here, but also relative paths, which
167+# will be relative from the directory where doxygen is started.
168+# This tag requires that the tag FULL_PATH_NAMES is set to YES.
169+
170+STRIP_FROM_PATH =
171+
172+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
173+# path mentioned in the documentation of a class, which tells the reader which
174+# header file to include in order to use a class. If left blank only the name of
175+# the header file containing the class definition is used. Otherwise one should
176+# specify the list of include paths that are normally passed to the compiler
177+# using the -I flag.
178+
179+STRIP_FROM_INC_PATH =
180+
181+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
182+# less readable) file names. This can be useful is your file systems doesn't
183+# support long names like on DOS, Mac, or CD-ROM.
184+# The default value is: NO.
185+
186+SHORT_NAMES = NO
187+
188+# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
189+# first line (until the first dot) of a Javadoc-style comment as the brief
190+# description. If set to NO, the Javadoc-style will behave just like regular Qt-
191+# style comments (thus requiring an explicit @brief command for a brief
192+# description.)
193+# The default value is: NO.
194+
195+JAVADOC_AUTOBRIEF = NO
196+
197+# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
198+# line (until the first dot) of a Qt-style comment as the brief description. If
199+# set to NO, the Qt-style will behave just like regular Qt-style comments (thus
200+# requiring an explicit \brief command for a brief description.)
201+# The default value is: NO.
202+
203+QT_AUTOBRIEF = NO
204+
205+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
206+# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
207+# a brief description. This used to be the default behavior. The new default is
208+# to treat a multi-line C++ comment block as a detailed description. Set this
209+# tag to YES if you prefer the old behavior instead.
210+#
211+# Note that setting this tag to YES also means that rational rose comments are
212+# not recognized any more.
213+# The default value is: NO.
214+
215+MULTILINE_CPP_IS_BRIEF = NO
216+
217+# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
218+# documentation from any documented member that it re-implements.
219+# The default value is: YES.
220+
221+INHERIT_DOCS = YES
222+
223+# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new
224+# page for each member. If set to NO, the documentation of a member will be part
225+# of the file/class/namespace that contains it.
226+# The default value is: NO.
227+
228+SEPARATE_MEMBER_PAGES = NO
229+
230+# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen
231+# uses this value to replace tabs by spaces in code fragments.
232+# Minimum value: 1, maximum value: 16, default value: 4.
233+
234+TAB_SIZE = 4
235+
236+# This tag can be used to specify a number of aliases that act as commands in
237+# the documentation. An alias has the form:
238+# name=value
239+# For example adding
240+# "sideeffect=@par Side Effects:\n"
241+# will allow you to put the command \sideeffect (or @sideeffect) in the
242+# documentation, which will result in a user-defined paragraph with heading
243+# "Side Effects:". You can put \n's in the value part of an alias to insert
244+# newlines.
245+
246+ALIASES =
247+
248+# This tag can be used to specify a number of word-keyword mappings (TCL only).
249+# A mapping has the form "name=value". For example adding "class=itcl::class"
250+# will allow you to use the command class in the itcl::class meaning.
251+
252+TCL_SUBST =
253+
254+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
255+# only. Doxygen will then generate output that is more tailored for C. For
256+# instance, some of the names that are used will be different. The list of all
257+# members will be omitted, etc.
258+# The default value is: NO.
259+
260+OPTIMIZE_OUTPUT_FOR_C = NO
261+
262+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or
263+# Python sources only. Doxygen will then generate output that is more tailored
264+# for that language. For instance, namespaces will be presented as packages,
265+# qualified scopes will look different, etc.
266+# The default value is: NO.
267+
268+OPTIMIZE_OUTPUT_JAVA = NO
269+
270+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
271+# sources. Doxygen will then generate output that is tailored for Fortran.
272+# The default value is: NO.
273+
274+OPTIMIZE_FOR_FORTRAN = YES
275+
276+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
277+# sources. Doxygen will then generate output that is tailored for VHDL.
278+# The default value is: NO.
279+
280+OPTIMIZE_OUTPUT_VHDL = NO
281+
282+# Doxygen selects the parser to use depending on the extension of the files it
283+# parses. With this tag you can assign which parser to use for a given
284+# extension. Doxygen has a built-in mapping, but you can override or extend it
285+# using this tag. The format is ext=language, where ext is a file extension, and
286+# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
287+# C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran:
288+# FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran:
289+# Fortran. In the later case the parser tries to guess whether the code is fixed
290+# or free formatted code, this is the default for Fortran type files), VHDL. For
291+# instance to make doxygen treat .inc files as Fortran files (default is PHP),
292+# and .f files as C (default is Fortran), use: inc=Fortran f=C.
293+#
294+# Note: For files without extension you can use no_extension as a placeholder.
295+#
296+# Note that for custom extensions you also need to set FILE_PATTERNS otherwise
297+# the files are not read by doxygen.
298+
299+EXTENSION_MAPPING =
300+
301+# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
302+# according to the Markdown format, which allows for more readable
303+# documentation. See http://daringfireball.net/projects/markdown/ for details.
304+# The output of markdown processing is further processed by doxygen, so you can
305+# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in
306+# case of backward compatibilities issues.
307+# The default value is: YES.
308+
309+MARKDOWN_SUPPORT = YES
310+
311+# When the TOC_INCLUDE_HEADINGS tag is set to a non-zero value, all headings up
312+# to that level are automatically included in the table of contents, even if
313+# they do not have an id attribute.
314+# Note: This feature currently applies only to Markdown headings.
315+# Minimum value: 0, maximum value: 99, default value: 0.
316+# This tag requires that the tag MARKDOWN_SUPPORT is set to YES.
317+
318+TOC_INCLUDE_HEADINGS = 0
319+
320+# When enabled doxygen tries to link words that correspond to documented
321+# classes, or namespaces to their corresponding documentation. Such a link can
322+# be prevented in individual cases by putting a % sign in front of the word or
323+# globally by setting AUTOLINK_SUPPORT to NO.
324+# The default value is: YES.
325+
326+AUTOLINK_SUPPORT = YES
327+
328+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
329+# to include (a tag file for) the STL sources as input, then you should set this
330+# tag to YES in order to let doxygen match functions declarations and
331+# definitions whose arguments contain STL classes (e.g. func(std::string);
332+# versus func(std::string) {}). This also make the inheritance and collaboration
333+# diagrams that involve STL classes more complete and accurate.
334+# The default value is: NO.
335+
336+BUILTIN_STL_SUPPORT = NO
337+
338+# If you use Microsoft's C++/CLI language, you should set this option to YES to
339+# enable parsing support.
340+# The default value is: NO.
341+
342+CPP_CLI_SUPPORT = NO
343+
344+# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:
345+# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen
346+# will parse them like normal C++ but will assume all classes use public instead
347+# of private inheritance when no explicit protection keyword is present.
348+# The default value is: NO.
349+
350+SIP_SUPPORT = NO
351+
352+# For Microsoft's IDL there are propget and propput attributes to indicate
353+# getter and setter methods for a property. Setting this option to YES will make
354+# doxygen to replace the get and set methods by a property in the documentation.
355+# This will only work if the methods are indeed getting or setting a simple
356+# type. If this is not the case, or you want to show the methods anyway, you
357+# should set this option to NO.
358+# The default value is: YES.
359+
360+IDL_PROPERTY_SUPPORT = YES
361+
362+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
363+# tag is set to YES then doxygen will reuse the documentation of the first
364+# member in the group (if any) for the other members of the group. By default
365+# all members of a group must be documented explicitly.
366+# The default value is: NO.
367+
368+DISTRIBUTE_GROUP_DOC = NO
369+
370+# If one adds a struct or class to a group and this option is enabled, then also
371+# any nested class or struct is added to the same group. By default this option
372+# is disabled and one has to add nested compounds explicitly via \ingroup.
373+# The default value is: NO.
374+
375+GROUP_NESTED_COMPOUNDS = NO
376+
377+# Set the SUBGROUPING tag to YES to allow class member groups of the same type
378+# (for instance a group of public functions) to be put as a subgroup of that
379+# type (e.g. under the Public Functions section). Set it to NO to prevent
380+# subgrouping. Alternatively, this can be done per class using the
381+# \nosubgrouping command.
382+# The default value is: YES.
383+
384+SUBGROUPING = YES
385+
386+# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions
387+# are shown inside the group in which they are included (e.g. using \ingroup)
388+# instead of on a separate page (for HTML and Man pages) or section (for LaTeX
389+# and RTF).
390+#
391+# Note that this feature does not work in combination with
392+# SEPARATE_MEMBER_PAGES.
393+# The default value is: NO.
394+
395+INLINE_GROUPED_CLASSES = NO
396+
397+# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions
398+# with only public data fields or simple typedef fields will be shown inline in
399+# the documentation of the scope in which they are defined (i.e. file,
400+# namespace, or group documentation), provided this scope is documented. If set
401+# to NO, structs, classes, and unions are shown on a separate page (for HTML and
402+# Man pages) or section (for LaTeX and RTF).
403+# The default value is: NO.
404+
405+INLINE_SIMPLE_STRUCTS = NO
406+
407+# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or
408+# enum is documented as struct, union, or enum with the name of the typedef. So
409+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
410+# with name TypeT. When disabled the typedef will appear as a member of a file,
411+# namespace, or class. And the struct will be named TypeS. This can typically be
412+# useful for C code in case the coding convention dictates that all compound
413+# types are typedef'ed and only the typedef is referenced, never the tag name.
414+# The default value is: NO.
415+
416+TYPEDEF_HIDES_STRUCT = NO
417+
418+# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
419+# cache is used to resolve symbols given their name and scope. Since this can be
420+# an expensive process and often the same symbol appears multiple times in the
421+# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small
422+# doxygen will become slower. If the cache is too large, memory is wasted. The
423+# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range
424+# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536
425+# symbols. At the end of a run doxygen will report the cache usage and suggest
426+# the optimal cache size from a speed point of view.
427+# Minimum value: 0, maximum value: 9, default value: 0.
428+
429+LOOKUP_CACHE_SIZE = 0
430+
431+#---------------------------------------------------------------------------
432+# Build related configuration options
433+#---------------------------------------------------------------------------
434+
435+# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in
436+# documentation are documented, even if no documentation was available. Private
437+# class members and static file members will be hidden unless the
438+# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.
439+# Note: This will also disable the warnings about undocumented members that are
440+# normally produced when WARNINGS is set to YES.
441+# The default value is: NO.
442+
443+EXTRACT_ALL = NO
444+
445+# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will
446+# be included in the documentation.
447+# The default value is: NO.
448+
449+EXTRACT_PRIVATE = NO
450+
451+# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal
452+# scope will be included in the documentation.
453+# The default value is: NO.
454+
455+EXTRACT_PACKAGE = NO
456+
457+# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be
458+# included in the documentation.
459+# The default value is: NO.
460+
461+EXTRACT_STATIC = NO
462+
463+# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined
464+# locally in source files will be included in the documentation. If set to NO,
465+# only classes defined in header files are included. Does not have any effect
466+# for Java sources.
467+# The default value is: YES.
468+
469+EXTRACT_LOCAL_CLASSES = YES
470+
471+# This flag is only useful for Objective-C code. If set to YES, local methods,
472+# which are defined in the implementation section but not in the interface are
473+# included in the documentation. If set to NO, only methods in the interface are
474+# included.
475+# The default value is: NO.
476+
477+EXTRACT_LOCAL_METHODS = NO
478+
479+# If this flag is set to YES, the members of anonymous namespaces will be
480+# extracted and appear in the documentation as a namespace called
481+# 'anonymous_namespace{file}', where file will be replaced with the base name of
482+# the file that contains the anonymous namespace. By default anonymous namespace
483+# are hidden.
484+# The default value is: NO.
485+
486+EXTRACT_ANON_NSPACES = NO
487+
488+# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all
489+# undocumented members inside documented classes or files. If set to NO these
490+# members will be included in the various overviews, but no documentation
491+# section is generated. This option has no effect if EXTRACT_ALL is enabled.
492+# The default value is: NO.
493+
494+HIDE_UNDOC_MEMBERS = NO
495+
496+# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
497+# undocumented classes that are normally visible in the class hierarchy. If set
498+# to NO, these classes will be included in the various overviews. This option
499+# has no effect if EXTRACT_ALL is enabled.
500+# The default value is: NO.
501+
502+HIDE_UNDOC_CLASSES = NO
503+
504+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
505+# (class|struct|union) declarations. If set to NO, these declarations will be
506+# included in the documentation.
507+# The default value is: NO.
508+
509+HIDE_FRIEND_COMPOUNDS = NO
510+
511+# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
512+# documentation blocks found inside the body of a function. If set to NO, these
513+# blocks will be appended to the function's detailed documentation block.
514+# The default value is: NO.
515+
516+HIDE_IN_BODY_DOCS = NO
517+
518+# The INTERNAL_DOCS tag determines if documentation that is typed after a
519+# \internal command is included. If the tag is set to NO then the documentation
520+# will be excluded. Set it to YES to include the internal documentation.
521+# The default value is: NO.
522+
523+INTERNAL_DOCS = NO
524+
525+# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file
526+# names in lower-case letters. If set to YES, upper-case letters are also
527+# allowed. This is useful if you have classes or files whose names only differ
528+# in case and if your file system supports case sensitive file names. Windows
529+# and Mac users are advised to set this option to NO.
530+# The default value is: system dependent.
531+
532+CASE_SENSE_NAMES = YES
533+
534+# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with
535+# their full class and namespace scopes in the documentation. If set to YES, the
536+# scope will be hidden.
537+# The default value is: NO.
538+
539+HIDE_SCOPE_NAMES = NO
540+
541+# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will
542+# append additional text to a page's title, such as Class Reference. If set to
543+# YES the compound reference will be hidden.
544+# The default value is: NO.
545+
546+HIDE_COMPOUND_REFERENCE= NO
547+
548+# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of
549+# the files that are included by a file in the documentation of that file.
550+# The default value is: YES.
551+
552+SHOW_INCLUDE_FILES = YES
553+
554+# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
555+# grouped member an include statement to the documentation, telling the reader
556+# which file to include in order to use the member.
557+# The default value is: NO.
558+
559+SHOW_GROUPED_MEMB_INC = NO
560+
561+# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
562+# files with double quotes in the documentation rather than with sharp brackets.
563+# The default value is: NO.
564+
565+FORCE_LOCAL_INCLUDES = NO
566+
567+# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the
568+# documentation for inline members.
569+# The default value is: YES.
570+
571+INLINE_INFO = YES
572+
573+# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the
574+# (detailed) documentation of file and class members alphabetically by member
575+# name. If set to NO, the members will appear in declaration order.
576+# The default value is: YES.
577+
578+SORT_MEMBER_DOCS = YES
579+
580+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
581+# descriptions of file, namespace and class members alphabetically by member
582+# name. If set to NO, the members will appear in declaration order. Note that
583+# this will also influence the order of the classes in the class list.
584+# The default value is: NO.
585+
586+SORT_BRIEF_DOCS = NO
587+
588+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the
589+# (brief and detailed) documentation of class members so that constructors and
590+# destructors are listed first. If set to NO the constructors will appear in the
591+# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.
592+# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief
593+# member documentation.
594+# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting
595+# detailed member documentation.
596+# The default value is: NO.
597+
598+SORT_MEMBERS_CTORS_1ST = NO
599+
600+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy
601+# of group names into alphabetical order. If set to NO the group names will
602+# appear in their defined order.
603+# The default value is: NO.
604+
605+SORT_GROUP_NAMES = NO
606+
607+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by
608+# fully-qualified names, including namespaces. If set to NO, the class list will
609+# be sorted only by class name, not including the namespace part.
610+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
611+# Note: This option applies only to the class list, not to the alphabetical
612+# list.
613+# The default value is: NO.
614+
615+SORT_BY_SCOPE_NAME = NO
616+
617+# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper
618+# type resolution of all parameters of a function it will reject a match between
619+# the prototype and the implementation of a member function even if there is
620+# only one candidate or it is obvious which candidate to choose by doing a
621+# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still
622+# accept a match between prototype and implementation in such cases.
623+# The default value is: NO.
624+
625+STRICT_PROTO_MATCHING = NO
626+
627+# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo
628+# list. This list is created by putting \todo commands in the documentation.
629+# The default value is: YES.
630+
631+GENERATE_TODOLIST = YES
632+
633+# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test
634+# list. This list is created by putting \test commands in the documentation.
635+# The default value is: YES.
636+
637+GENERATE_TESTLIST = YES
638+
639+# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug
640+# list. This list is created by putting \bug commands in the documentation.
641+# The default value is: YES.
642+
643+GENERATE_BUGLIST = YES
644+
645+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO)
646+# the deprecated list. This list is created by putting \deprecated commands in
647+# the documentation.
648+# The default value is: YES.
649+
650+GENERATE_DEPRECATEDLIST= YES
651+
652+# The ENABLED_SECTIONS tag can be used to enable conditional documentation
653+# sections, marked by \if <section_label> ... \endif and \cond <section_label>
654+# ... \endcond blocks.
655+
656+ENABLED_SECTIONS =
657+
658+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the
659+# initial value of a variable or macro / define can have for it to appear in the
660+# documentation. If the initializer consists of more lines than specified here
661+# it will be hidden. Use a value of 0 to hide initializers completely. The
662+# appearance of the value of individual variables and macros / defines can be
663+# controlled using \showinitializer or \hideinitializer command in the
664+# documentation regardless of this setting.
665+# Minimum value: 0, maximum value: 10000, default value: 30.
666+
667+MAX_INITIALIZER_LINES = 30
668+
669+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at
670+# the bottom of the documentation of classes and structs. If set to YES, the
671+# list will mention the files that were used to generate the documentation.
672+# The default value is: YES.
673+
674+SHOW_USED_FILES = YES
675+
676+# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This
677+# will remove the Files entry from the Quick Index and from the Folder Tree View
678+# (if specified).
679+# The default value is: YES.
680+
681+SHOW_FILES = YES
682+
683+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces
684+# page. This will remove the Namespaces entry from the Quick Index and from the
685+# Folder Tree View (if specified).
686+# The default value is: YES.
687+
688+SHOW_NAMESPACES = YES
689+
690+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
691+# doxygen should invoke to get the current version for each file (typically from
692+# the version control system). Doxygen will invoke the program by executing (via
693+# popen()) the command command input-file, where command is the value of the
694+# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
695+# by doxygen. Whatever the program writes to standard output is used as the file
696+# version. For an example see the documentation.
697+
698+FILE_VERSION_FILTER =
699+
700+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
701+# by doxygen. The layout file controls the global structure of the generated
702+# output files in an output format independent way. To create the layout file
703+# that represents doxygen's defaults, run doxygen with the -l option. You can
704+# optionally specify a file name after the option, if omitted DoxygenLayout.xml
705+# will be used as the name of the layout file.
706+#
707+# Note that if you run doxygen from a directory containing a file called
708+# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
709+# tag is left empty.
710+
711+LAYOUT_FILE =
712+
713+# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
714+# the reference definitions. This must be a list of .bib files. The .bib
715+# extension is automatically appended if omitted. This requires the bibtex tool
716+# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info.
717+# For LaTeX the style of the bibliography can be controlled using
718+# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the
719+# search path. See also \cite for info how to create references.
720+
721+CITE_BIB_FILES =
722+
723+#---------------------------------------------------------------------------
724+# Configuration options related to warning and progress messages
725+#---------------------------------------------------------------------------
726+
727+# The QUIET tag can be used to turn on/off the messages that are generated to
728+# standard output by doxygen. If QUIET is set to YES this implies that the
729+# messages are off.
730+# The default value is: NO.
731+
732+QUIET = NO
733+
734+# The WARNINGS tag can be used to turn on/off the warning messages that are
735+# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES
736+# this implies that the warnings are on.
737+#
738+# Tip: Turn warnings on while writing the documentation.
739+# The default value is: YES.
740+
741+WARNINGS = YES
742+
743+# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate
744+# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag
745+# will automatically be disabled.
746+# The default value is: YES.
747+
748+WARN_IF_UNDOCUMENTED = YES
749+
750+# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
751+# potential errors in the documentation, such as not documenting some parameters
752+# in a documented function, or documenting parameters that don't exist or using
753+# markup commands wrongly.
754+# The default value is: YES.
755+
756+WARN_IF_DOC_ERROR = YES
757+
758+# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that
759+# are documented, but have no documentation for their parameters or return
760+# value. If set to NO, doxygen will only warn about wrong or incomplete
761+# parameter documentation, but not about the absence of documentation.
762+# The default value is: NO.
763+
764+WARN_NO_PARAMDOC = NO
765+
766+# If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when
767+# a warning is encountered.
768+# The default value is: NO.
769+
770+WARN_AS_ERROR = NO
771+
772+# The WARN_FORMAT tag determines the format of the warning messages that doxygen
773+# can produce. The string should contain the $file, $line, and $text tags, which
774+# will be replaced by the file and line number from which the warning originated
775+# and the warning text. Optionally the format may contain $version, which will
776+# be replaced by the version of the file (if it could be obtained via
777+# FILE_VERSION_FILTER)
778+# The default value is: $file:$line: $text.
779+
780+WARN_FORMAT = "$file:$line: $text"
781+
782+# The WARN_LOGFILE tag can be used to specify a file to which warning and error
783+# messages should be written. If left blank the output is written to standard
784+# error (stderr).
785+
786+WARN_LOGFILE =
787+
788+#---------------------------------------------------------------------------
789+# Configuration options related to the input files
790+#---------------------------------------------------------------------------
791+
792+# The INPUT tag is used to specify the files and/or directories that contain
793+# documented source files. You may enter file names like myfile.cpp or
794+# directories like /usr/src/myproject. Separate the files or directories with
795+# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
796+# Note: If this tag is empty the current directory is searched.
797+
798+INPUT = ../../Src \
799+ ford-pages
800+
801+# This tag can be used to specify the character encoding of the source files
802+# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
803+# libiconv (or the iconv built into libc) for the transcoding. See the libiconv
804+# documentation (see: http://www.gnu.org/software/libiconv) for the list of
805+# possible encodings.
806+# The default value is: UTF-8.
807+
808+INPUT_ENCODING = UTF-8
809+
810+# If the value of the INPUT tag contains directories, you can use the
811+# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and
812+# *.h) to filter out the source-files in the directories.
813+#
814+# Note that for custom extensions or not directly supported extensions you also
815+# need to set EXTENSION_MAPPING for the extension otherwise the files are not
816+# read by doxygen.
817+#
818+# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
819+# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
820+# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
821+# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
822+# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf and *.qsf.
823+
824+FILE_PATTERNS = *.c \
825+ *.cc \
826+ *.cxx \
827+ *.cpp \
828+ *.c++ \
829+ *.java \
830+ *.ii \
831+ *.ixx \
832+ *.ipp \
833+ *.i++ \
834+ *.inl \
835+ *.idl \
836+ *.ddl \
837+ *.odl \
838+ *.h \
839+ *.hh \
840+ *.hxx \
841+ *.hpp \
842+ *.h++ \
843+ *.cs \
844+ *.d \
845+ *.php \
846+ *.php4 \
847+ *.php5 \
848+ *.phtml \
849+ *.inc \
850+ *.m \
851+ *.markdown \
852+ *.md \
853+ *.mm \
854+ *.dox \
855+ *.py \
856+ *.pyw \
857+ *.F90 \
858+ *.f90 \
859+ *.f95 \
860+ *.f03 \
861+ *.f08 \
862+ *.f \
863+ *.F \
864+ *.for \
865+ *.tcl \
866+ *.vhd \
867+ *.vhdl \
868+ *.ucf \
869+ *.qsf
870+
871+# The RECURSIVE tag can be used to specify whether or not subdirectories should
872+# be searched for input files as well.
873+# The default value is: NO.
874+
875+RECURSIVE = YES
876+
877+# The EXCLUDE tag can be used to specify files and/or directories that should be
878+# excluded from the INPUT source files. This way you can easily exclude a
879+# subdirectory from a directory tree whose root is specified with the INPUT tag.
880+#
881+# Note that relative paths are relative to the directory from which doxygen is
882+# run.
883+
884+EXCLUDE = ../../Src/MPI \
885+ ../../Src/fdf \
886+ ../../Src/fdict \
887+ ../../Src/ncdf \
888+ ../../Src/Libs \
889+ ../../Src/Orphans \
890+ ../../Src/SiestaXC \
891+ ../../Src/wxml \
892+ ../../Src/xmlparser
893+
894+# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
895+# directories that are symbolic links (a Unix file system feature) are excluded
896+# from the input.
897+# The default value is: NO.
898+
899+EXCLUDE_SYMLINKS = NO
900+
901+# If the value of the INPUT tag contains directories, you can use the
902+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
903+# certain files from those directories.
904+#
905+# Note that the wildcards are matched against the file with absolute path, so to
906+# exclude all test directories for example use the pattern */test/*
907+
908+EXCLUDE_PATTERNS =
909+
910+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
911+# (namespaces, classes, functions, etc.) that should be excluded from the
912+# output. The symbol name can be a fully qualified name, a word, or if the
913+# wildcard * is used, a substring. Examples: ANamespace, AClass,
914+# AClass::ANamespace, ANamespace::*Test
915+#
916+# Note that the wildcards are matched against the file with absolute path, so to
917+# exclude all test directories use the pattern */test/*
918+
919+EXCLUDE_SYMBOLS =
920+
921+# The EXAMPLE_PATH tag can be used to specify one or more files or directories
922+# that contain example code fragments that are included (see the \include
923+# command).
924+
925+EXAMPLE_PATH =
926+
927+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
928+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
929+# *.h) to filter out the source-files in the directories. If left blank all
930+# files are included.
931+
932+EXAMPLE_PATTERNS = *
933+
934+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
935+# searched for input files to be used with the \include or \dontinclude commands
936+# irrespective of the value of the RECURSIVE tag.
937+# The default value is: NO.
938+
939+EXAMPLE_RECURSIVE = NO
940+
941+# The IMAGE_PATH tag can be used to specify one or more files or directories
942+# that contain images that are to be included in the documentation (see the
943+# \image command).
944+
945+IMAGE_PATH = ford-media
946+
947+# The INPUT_FILTER tag can be used to specify a program that doxygen should
948+# invoke to filter for each input file. Doxygen will invoke the filter program
949+# by executing (via popen()) the command:
950+#
951+# <filter> <input-file>
952+#
953+# where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the
954+# name of an input file. Doxygen will then use the output that the filter
955+# program writes to standard output. If FILTER_PATTERNS is specified, this tag
956+# will be ignored.
957+#
958+# Note that the filter must not add or remove lines; it is applied before the
959+# code is scanned, but not when the output code is generated. If lines are added
960+# or removed, the anchors will not be placed correctly.
961+#
962+# Note that for custom extensions or not directly supported extensions you also
963+# need to set EXTENSION_MAPPING for the extension otherwise the files are not
964+# properly processed by doxygen.
965+
966+INPUT_FILTER =
967+
968+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
969+# basis. Doxygen will compare the file name with each pattern and apply the
970+# filter if there is a match. The filters are a list of the form: pattern=filter
971+# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how
972+# filters are used. If the FILTER_PATTERNS tag is empty or if none of the
973+# patterns match the file name, INPUT_FILTER is applied.
974+#
975+# Note that for custom extensions or not directly supported extensions you also
976+# need to set EXTENSION_MAPPING for the extension otherwise the files are not
977+# properly processed by doxygen.
978+
979+FILTER_PATTERNS =
980+
981+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
982+# INPUT_FILTER) will also be used to filter the input files that are used for
983+# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).
984+# The default value is: NO.
985+
986+FILTER_SOURCE_FILES = NO
987+
988+# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
989+# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and
990+# it is also possible to disable source filtering for a specific pattern using
991+# *.ext= (so without naming a filter).
992+# This tag requires that the tag FILTER_SOURCE_FILES is set to YES.
993+
994+FILTER_SOURCE_PATTERNS =
995+
996+# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that
997+# is part of the input, its contents will be placed on the main page
998+# (index.html). This can be useful if you have a project on for instance GitHub
999+# and want to reuse the introduction page also for the doxygen output.
1000+
1001+USE_MDFILE_AS_MAINPAGE = ford-pages/index.md
1002+
1003+#---------------------------------------------------------------------------
1004+# Configuration options related to source browsing
1005+#---------------------------------------------------------------------------
1006+
1007+# If the SOURCE_BROWSER tag is set to YES then a list of source files will be
1008+# generated. Documented entities will be cross-referenced with these sources.
1009+#
1010+# Note: To get rid of all source code in the generated output, make sure that
1011+# also VERBATIM_HEADERS is set to NO.
1012+# The default value is: NO.
1013+
1014+SOURCE_BROWSER = NO
1015+
1016+# Setting the INLINE_SOURCES tag to YES will include the body of functions,
1017+# classes and enums directly into the documentation.
1018+# The default value is: NO.
1019+
1020+INLINE_SOURCES = NO
1021+
1022+# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any
1023+# special comment blocks from generated source code fragments. Normal C, C++ and
1024+# Fortran comments will always remain visible.
1025+# The default value is: YES.
1026+
1027+STRIP_CODE_COMMENTS = YES
1028+
1029+# If the REFERENCED_BY_RELATION tag is set to YES then for each documented
1030+# function all documented functions referencing it will be listed.
1031+# The default value is: NO.
1032+
1033+REFERENCED_BY_RELATION = NO
1034+
1035+# If the REFERENCES_RELATION tag is set to YES then for each documented function
1036+# all documented entities called/used by that function will be listed.
1037+# The default value is: NO.
1038+
1039+REFERENCES_RELATION = NO
1040+
1041+# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set
1042+# to YES then the hyperlinks from functions in REFERENCES_RELATION and
1043+# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will
1044+# link to the documentation.
1045+# The default value is: YES.
1046+
1047+REFERENCES_LINK_SOURCE = YES
1048+
1049+# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the
1050+# source code will show a tooltip with additional information such as prototype,
1051+# brief description and links to the definition and documentation. Since this
1052+# will make the HTML file larger and loading of large files a bit slower, you
1053+# can opt to disable this feature.
1054+# The default value is: YES.
1055+# This tag requires that the tag SOURCE_BROWSER is set to YES.
1056+
1057+SOURCE_TOOLTIPS = YES
1058+
1059+# If the USE_HTAGS tag is set to YES then the references to source code will
1060+# point to the HTML generated by the htags(1) tool instead of doxygen built-in
1061+# source browser. The htags tool is part of GNU's global source tagging system
1062+# (see http://www.gnu.org/software/global/global.html). You will need version
1063+# 4.8.6 or higher.
1064+#
1065+# To use it do the following:
1066+# - Install the latest version of global
1067+# - Enable SOURCE_BROWSER and USE_HTAGS in the config file
1068+# - Make sure the INPUT points to the root of the source tree
1069+# - Run doxygen as normal
1070+#
1071+# Doxygen will invoke htags (and that will in turn invoke gtags), so these
1072+# tools must be available from the command line (i.e. in the search path).
1073+#
1074+# The result: instead of the source browser generated by doxygen, the links to
1075+# source code will now point to the output of htags.
1076+# The default value is: NO.
1077+# This tag requires that the tag SOURCE_BROWSER is set to YES.
1078+
1079+USE_HTAGS = NO
1080+
1081+# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a
1082+# verbatim copy of the header file for each class for which an include is
1083+# specified. Set to NO to disable this.
1084+# See also: Section \class.
1085+# The default value is: YES.
1086+
1087+VERBATIM_HEADERS = YES
1088+
1089+#---------------------------------------------------------------------------
1090+# Configuration options related to the alphabetical class index
1091+#---------------------------------------------------------------------------
1092+
1093+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all
1094+# compounds will be generated. Enable this if the project contains a lot of
1095+# classes, structs, unions or interfaces.
1096+# The default value is: YES.
1097+
1098+ALPHABETICAL_INDEX = YES
1099+
1100+# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in
1101+# which the alphabetical index list will be split.
1102+# Minimum value: 1, maximum value: 20, default value: 5.
1103+# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
1104+
1105+COLS_IN_ALPHA_INDEX = 5
1106+
1107+# In case all classes in a project start with a common prefix, all classes will
1108+# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
1109+# can be used to specify a prefix (or a list of prefixes) that should be ignored
1110+# while generating the index headers.
1111+# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
1112+
1113+IGNORE_PREFIX =
1114+
1115+#---------------------------------------------------------------------------
1116+# Configuration options related to the HTML output
1117+#---------------------------------------------------------------------------
1118+
1119+# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
1120+# The default value is: YES.
1121+
1122+GENERATE_HTML = YES
1123+
1124+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
1125+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
1126+# it.
1127+# The default directory is: html.
1128+# This tag requires that the tag GENERATE_HTML is set to YES.
1129+
1130+HTML_OUTPUT = html
1131+
1132+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
1133+# generated HTML page (for example: .htm, .php, .asp).
1134+# The default value is: .html.
1135+# This tag requires that the tag GENERATE_HTML is set to YES.
1136+
1137+HTML_FILE_EXTENSION = .html
1138+
1139+# The HTML_HEADER tag can be used to specify a user-defined HTML header file for
1140+# each generated HTML page. If the tag is left blank doxygen will generate a
1141+# standard header.
1142+#
1143+# To get valid HTML the header file that includes any scripts and style sheets
1144+# that doxygen needs, which is dependent on the configuration options used (e.g.
1145+# the setting GENERATE_TREEVIEW). It is highly recommended to start with a
1146+# default header using
1147+# doxygen -w html new_header.html new_footer.html new_stylesheet.css
1148+# YourConfigFile
1149+# and then modify the file new_header.html. See also section "Doxygen usage"
1150+# for information on how to generate the default header that doxygen normally
1151+# uses.
1152+# Note: The header is subject to change so you typically have to regenerate the
1153+# default header when upgrading to a newer version of doxygen. For a description
1154+# of the possible markers and block names see the documentation.
1155+# This tag requires that the tag GENERATE_HTML is set to YES.
1156+
1157+HTML_HEADER =
1158+
1159+# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
1160+# generated HTML page. If the tag is left blank doxygen will generate a standard
1161+# footer. See HTML_HEADER for more information on how to generate a default
1162+# footer and what special commands can be used inside the footer. See also
1163+# section "Doxygen usage" for information on how to generate the default footer
1164+# that doxygen normally uses.
1165+# This tag requires that the tag GENERATE_HTML is set to YES.
1166+
1167+HTML_FOOTER =
1168+
1169+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
1170+# sheet that is used by each HTML page. It can be used to fine-tune the look of
1171+# the HTML output. If left blank doxygen will generate a default style sheet.
1172+# See also section "Doxygen usage" for information on how to generate the style
1173+# sheet that doxygen normally uses.
1174+# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as
1175+# it is more robust and this tag (HTML_STYLESHEET) will in the future become
1176+# obsolete.
1177+# This tag requires that the tag GENERATE_HTML is set to YES.
1178+
1179+HTML_STYLESHEET =
1180+
1181+# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined
1182+# cascading style sheets that are included after the standard style sheets
1183+# created by doxygen. Using this option one can overrule certain style aspects.
1184+# This is preferred over using HTML_STYLESHEET since it does not replace the
1185+# standard style sheet and is therefore more robust against future updates.
1186+# Doxygen will copy the style sheet files to the output directory.
1187+# Note: The order of the extra style sheet files is of importance (e.g. the last
1188+# style sheet in the list overrules the setting of the previous ones in the
1189+# list). For an example see the documentation.
1190+# This tag requires that the tag GENERATE_HTML is set to YES.
1191+
1192+HTML_EXTRA_STYLESHEET =
1193+
1194+# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
1195+# other source files which should be copied to the HTML output directory. Note
1196+# that these files will be copied to the base HTML output directory. Use the
1197+# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
1198+# files. In the HTML_STYLESHEET file, use the file name only. Also note that the
1199+# files will be copied as-is; there are no commands or markers available.
1200+# This tag requires that the tag GENERATE_HTML is set to YES.
1201+
1202+HTML_EXTRA_FILES =
1203+
1204+# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
1205+# will adjust the colors in the style sheet and background images according to
1206+# this color. Hue is specified as an angle on a colorwheel, see
1207+# http://en.wikipedia.org/wiki/Hue for more information. For instance the value
1208+# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300
1209+# purple, and 360 is red again.
1210+# Minimum value: 0, maximum value: 359, default value: 220.
1211+# This tag requires that the tag GENERATE_HTML is set to YES.
1212+
1213+HTML_COLORSTYLE_HUE = 220
1214+
1215+# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors
1216+# in the HTML output. For a value of 0 the output will use grayscales only. A
1217+# value of 255 will produce the most vivid colors.
1218+# Minimum value: 0, maximum value: 255, default value: 100.
1219+# This tag requires that the tag GENERATE_HTML is set to YES.
1220+
1221+HTML_COLORSTYLE_SAT = 100
1222+
1223+# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the
1224+# luminance component of the colors in the HTML output. Values below 100
1225+# gradually make the output lighter, whereas values above 100 make the output
1226+# darker. The value divided by 100 is the actual gamma applied, so 80 represents
1227+# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not
1228+# change the gamma.
1229+# Minimum value: 40, maximum value: 240, default value: 80.
1230+# This tag requires that the tag GENERATE_HTML is set to YES.
1231+
1232+HTML_COLORSTYLE_GAMMA = 80
1233+
1234+# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
1235+# page will contain the date and time when the page was generated. Setting this
1236+# to YES can help to show when doxygen was last run and thus if the
1237+# documentation is up to date.
1238+# The default value is: NO.
1239+# This tag requires that the tag GENERATE_HTML is set to YES.
1240+
1241+HTML_TIMESTAMP = NO
1242+
1243+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
1244+# documentation will contain sections that can be hidden and shown after the
1245+# page has loaded.
1246+# The default value is: NO.
1247+# This tag requires that the tag GENERATE_HTML is set to YES.
1248+
1249+HTML_DYNAMIC_SECTIONS = NO
1250+
1251+# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries
1252+# shown in the various tree structured indices initially; the user can expand
1253+# and collapse entries dynamically later on. Doxygen will expand the tree to
1254+# such a level that at most the specified number of entries are visible (unless
1255+# a fully collapsed tree already exceeds this amount). So setting the number of
1256+# entries 1 will produce a full collapsed tree by default. 0 is a special value
1257+# representing an infinite number of entries and will result in a full expanded
1258+# tree by default.
1259+# Minimum value: 0, maximum value: 9999, default value: 100.
1260+# This tag requires that the tag GENERATE_HTML is set to YES.
1261+
1262+HTML_INDEX_NUM_ENTRIES = 100
1263+
1264+# If the GENERATE_DOCSET tag is set to YES, additional index files will be
1265+# generated that can be used as input for Apple's Xcode 3 integrated development
1266+# environment (see: http://developer.apple.com/tools/xcode/), introduced with
1267+# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a
1268+# Makefile in the HTML output directory. Running make will produce the docset in
1269+# that directory and running make install will install the docset in
1270+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at
1271+# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
1272+# for more information.
1273+# The default value is: NO.
1274+# This tag requires that the tag GENERATE_HTML is set to YES.
1275+
1276+GENERATE_DOCSET = NO
1277+
1278+# This tag determines the name of the docset feed. A documentation feed provides
1279+# an umbrella under which multiple documentation sets from a single provider
1280+# (such as a company or product suite) can be grouped.
1281+# The default value is: Doxygen generated docs.
1282+# This tag requires that the tag GENERATE_DOCSET is set to YES.
1283+
1284+DOCSET_FEEDNAME = "Doxygen generated docs"
1285+
1286+# This tag specifies a string that should uniquely identify the documentation
1287+# set bundle. This should be a reverse domain-name style string, e.g.
1288+# com.mycompany.MyDocSet. Doxygen will append .docset to the name.
1289+# The default value is: org.doxygen.Project.
1290+# This tag requires that the tag GENERATE_DOCSET is set to YES.
1291+
1292+DOCSET_BUNDLE_ID = org.doxygen.Project
1293+
1294+# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify
1295+# the documentation publisher. This should be a reverse domain-name style
1296+# string, e.g. com.mycompany.MyDocSet.documentation.
1297+# The default value is: org.doxygen.Publisher.
1298+# This tag requires that the tag GENERATE_DOCSET is set to YES.
1299+
1300+DOCSET_PUBLISHER_ID = org.doxygen.Publisher
1301+
1302+# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
1303+# The default value is: Publisher.
1304+# This tag requires that the tag GENERATE_DOCSET is set to YES.
1305+
1306+DOCSET_PUBLISHER_NAME = Publisher
1307+
1308+# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three
1309+# additional HTML index files: index.hhp, index.hhc, and index.hhk. The
1310+# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop
1311+# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on
1312+# Windows.
1313+#
1314+# The HTML Help Workshop contains a compiler that can convert all HTML output
1315+# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML
1316+# files are now used as the Windows 98 help format, and will replace the old
1317+# Windows help format (.hlp) on all Windows platforms in the future. Compressed
1318+# HTML files also contain an index, a table of contents, and you can search for
1319+# words in the documentation. The HTML workshop also contains a viewer for
1320+# compressed HTML files.
1321+# The default value is: NO.
1322+# This tag requires that the tag GENERATE_HTML is set to YES.
1323+
1324+GENERATE_HTMLHELP = NO
1325+
1326+# The CHM_FILE tag can be used to specify the file name of the resulting .chm
1327+# file. You can add a path in front of the file if the result should not be
1328+# written to the html output directory.
1329+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
1330+
1331+CHM_FILE =
1332+
1333+# The HHC_LOCATION tag can be used to specify the location (absolute path
1334+# including file name) of the HTML help compiler (hhc.exe). If non-empty,
1335+# doxygen will try to run the HTML help compiler on the generated index.hhp.
1336+# The file has to be specified with full path.
1337+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
1338+
1339+HHC_LOCATION =
1340+
1341+# The GENERATE_CHI flag controls if a separate .chi index file is generated
1342+# (YES) or that it should be included in the master .chm file (NO).
1343+# The default value is: NO.
1344+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
1345+
1346+GENERATE_CHI = NO
1347+
1348+# The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc)
1349+# and project file content.
1350+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
1351+
1352+CHM_INDEX_ENCODING =
1353+
1354+# The BINARY_TOC flag controls whether a binary table of contents is generated
1355+# (YES) or a normal table of contents (NO) in the .chm file. Furthermore it
1356+# enables the Previous and Next buttons.
1357+# The default value is: NO.
1358+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
1359+
1360+BINARY_TOC = NO
1361+
1362+# The TOC_EXPAND flag can be set to YES to add extra items for group members to
1363+# the table of contents of the HTML help documentation and to the tree view.
1364+# The default value is: NO.
1365+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
1366+
1367+TOC_EXPAND = NO
1368+
1369+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
1370+# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that
1371+# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help
1372+# (.qch) of the generated HTML documentation.
1373+# The default value is: NO.
1374+# This tag requires that the tag GENERATE_HTML is set to YES.
1375+
1376+GENERATE_QHP = NO
1377+
1378+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify
1379+# the file name of the resulting .qch file. The path specified is relative to
1380+# the HTML output folder.
1381+# This tag requires that the tag GENERATE_QHP is set to YES.
1382+
1383+QCH_FILE =
1384+
1385+# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help
1386+# Project output. For more information please see Qt Help Project / Namespace
1387+# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace).
1388+# The default value is: org.doxygen.Project.
1389+# This tag requires that the tag GENERATE_QHP is set to YES.
1390+
1391+QHP_NAMESPACE = org.doxygen.Project
1392+
1393+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt
1394+# Help Project output. For more information please see Qt Help Project / Virtual
1395+# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual-
1396+# folders).
1397+# The default value is: doc.
1398+# This tag requires that the tag GENERATE_QHP is set to YES.
1399+
1400+QHP_VIRTUAL_FOLDER = doc
1401+
1402+# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom
1403+# filter to add. For more information please see Qt Help Project / Custom
1404+# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
1405+# filters).
1406+# This tag requires that the tag GENERATE_QHP is set to YES.
1407+
1408+QHP_CUST_FILTER_NAME =
1409+
1410+# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the
1411+# custom filter to add. For more information please see Qt Help Project / Custom
1412+# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
1413+# filters).
1414+# This tag requires that the tag GENERATE_QHP is set to YES.
1415+
1416+QHP_CUST_FILTER_ATTRS =
1417+
1418+# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
1419+# project's filter section matches. Qt Help Project / Filter Attributes (see:
1420+# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes).
1421+# This tag requires that the tag GENERATE_QHP is set to YES.
1422+
1423+QHP_SECT_FILTER_ATTRS =
1424+
1425+# The QHG_LOCATION tag can be used to specify the location of Qt's
1426+# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the
1427+# generated .qhp file.
1428+# This tag requires that the tag GENERATE_QHP is set to YES.
1429+
1430+QHG_LOCATION =
1431+
1432+# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be
1433+# generated, together with the HTML files, they form an Eclipse help plugin. To
1434+# install this plugin and make it available under the help contents menu in
1435+# Eclipse, the contents of the directory containing the HTML and XML files needs
1436+# to be copied into the plugins directory of eclipse. The name of the directory
1437+# within the plugins directory should be the same as the ECLIPSE_DOC_ID value.
1438+# After copying Eclipse needs to be restarted before the help appears.
1439+# The default value is: NO.
1440+# This tag requires that the tag GENERATE_HTML is set to YES.
1441+
1442+GENERATE_ECLIPSEHELP = NO
1443+
1444+# A unique identifier for the Eclipse help plugin. When installing the plugin
1445+# the directory name containing the HTML and XML files should also have this
1446+# name. Each documentation set should have its own identifier.
1447+# The default value is: org.doxygen.Project.
1448+# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.
1449+
1450+ECLIPSE_DOC_ID = org.doxygen.Project
1451+
1452+# If you want full control over the layout of the generated HTML pages it might
1453+# be necessary to disable the index and replace it with your own. The
1454+# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top
1455+# of each HTML page. A value of NO enables the index and the value YES disables
1456+# it. Since the tabs in the index contain the same information as the navigation
1457+# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.
1458+# The default value is: NO.
1459+# This tag requires that the tag GENERATE_HTML is set to YES.
1460+
1461+DISABLE_INDEX = NO
1462+
1463+# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
1464+# structure should be generated to display hierarchical information. If the tag
1465+# value is set to YES, a side panel will be generated containing a tree-like
1466+# index structure (just like the one that is generated for HTML Help). For this
1467+# to work a browser that supports JavaScript, DHTML, CSS and frames is required
1468+# (i.e. any modern browser). Windows users are probably better off using the
1469+# HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can
1470+# further fine-tune the look of the index. As an example, the default style
1471+# sheet generated by doxygen has an example that shows how to put an image at
1472+# the root of the tree instead of the PROJECT_NAME. Since the tree basically has
1473+# the same information as the tab index, you could consider setting
1474+# DISABLE_INDEX to YES when enabling this option.
1475+# The default value is: NO.
1476+# This tag requires that the tag GENERATE_HTML is set to YES.
1477+
1478+GENERATE_TREEVIEW = NO
1479+
1480+# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that
1481+# doxygen will group on one line in the generated HTML documentation.
1482+#
1483+# Note that a value of 0 will completely suppress the enum values from appearing
1484+# in the overview section.
1485+# Minimum value: 0, maximum value: 20, default value: 4.
1486+# This tag requires that the tag GENERATE_HTML is set to YES.
1487+
1488+ENUM_VALUES_PER_LINE = 4
1489+
1490+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used
1491+# to set the initial width (in pixels) of the frame in which the tree is shown.
1492+# Minimum value: 0, maximum value: 1500, default value: 250.
1493+# This tag requires that the tag GENERATE_HTML is set to YES.
1494+
1495+TREEVIEW_WIDTH = 250
1496+
1497+# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to
1498+# external symbols imported via tag files in a separate window.
1499+# The default value is: NO.
1500+# This tag requires that the tag GENERATE_HTML is set to YES.
1501+
1502+EXT_LINKS_IN_WINDOW = NO
1503+
1504+# Use this tag to change the font size of LaTeX formulas included as images in
1505+# the HTML documentation. When you change the font size after a successful
1506+# doxygen run you need to manually remove any form_*.png images from the HTML
1507+# output directory to force them to be regenerated.
1508+# Minimum value: 8, maximum value: 50, default value: 10.
1509+# This tag requires that the tag GENERATE_HTML is set to YES.
1510+
1511+FORMULA_FONTSIZE = 10
1512+
1513+# Use the FORMULA_TRANPARENT tag to determine whether or not the images
1514+# generated for formulas are transparent PNGs. Transparent PNGs are not
1515+# supported properly for IE 6.0, but are supported on all modern browsers.
1516+#
1517+# Note that when changing this option you need to delete any form_*.png files in
1518+# the HTML output directory before the changes have effect.
1519+# The default value is: YES.
1520+# This tag requires that the tag GENERATE_HTML is set to YES.
1521+
1522+FORMULA_TRANSPARENT = YES
1523+
1524+# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
1525+# http://www.mathjax.org) which uses client side Javascript for the rendering
1526+# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
1527+# installed or if you want to formulas look prettier in the HTML output. When
1528+# enabled you may also need to install MathJax separately and configure the path
1529+# to it using the MATHJAX_RELPATH option.
1530+# The default value is: NO.
1531+# This tag requires that the tag GENERATE_HTML is set to YES.
1532+
1533+USE_MATHJAX = NO
1534+
1535+# When MathJax is enabled you can set the default output format to be used for
1536+# the MathJax output. See the MathJax site (see:
1537+# http://docs.mathjax.org/en/latest/output.html) for more details.
1538+# Possible values are: HTML-CSS (which is slower, but has the best
1539+# compatibility), NativeMML (i.e. MathML) and SVG.
1540+# The default value is: HTML-CSS.
1541+# This tag requires that the tag USE_MATHJAX is set to YES.
1542+
1543+MATHJAX_FORMAT = HTML-CSS
1544+
1545+# When MathJax is enabled you need to specify the location relative to the HTML
1546+# output directory using the MATHJAX_RELPATH option. The destination directory
1547+# should contain the MathJax.js script. For instance, if the mathjax directory
1548+# is located at the same level as the HTML output directory, then
1549+# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax
1550+# Content Delivery Network so you can quickly see the result without installing
1551+# MathJax. However, it is strongly recommended to install a local copy of
1552+# MathJax from http://www.mathjax.org before deployment.
1553+# The default value is: http://cdn.mathjax.org/mathjax/latest.
1554+# This tag requires that the tag USE_MATHJAX is set to YES.
1555+
1556+MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
1557+
1558+# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
1559+# extension names that should be enabled during MathJax rendering. For example
1560+# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols
1561+# This tag requires that the tag USE_MATHJAX is set to YES.
1562+
1563+MATHJAX_EXTENSIONS =
1564+
1565+# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces
1566+# of code that will be used on startup of the MathJax code. See the MathJax site
1567+# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an
1568+# example see the documentation.
1569+# This tag requires that the tag USE_MATHJAX is set to YES.
1570+
1571+MATHJAX_CODEFILE =
1572+
1573+# When the SEARCHENGINE tag is enabled doxygen will generate a search box for
1574+# the HTML output. The underlying search engine uses javascript and DHTML and
1575+# should work on any modern browser. Note that when using HTML help
1576+# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)
1577+# there is already a search function so this one should typically be disabled.
1578+# For large projects the javascript based search engine can be slow, then
1579+# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to
1580+# search using the keyboard; to jump to the search box use <access key> + S
1581+# (what the <access key> is depends on the OS and browser, but it is typically
1582+# <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down
1583+# key> to jump into the search results window, the results can be navigated
1584+# using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel
1585+# the search. The filter options can be selected when the cursor is inside the
1586+# search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>
1587+# to select a filter and <Enter> or <escape> to activate or cancel the filter
1588+# option.
1589+# The default value is: YES.
1590+# This tag requires that the tag GENERATE_HTML is set to YES.
1591+
1592+SEARCHENGINE = YES
1593+
1594+# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
1595+# implemented using a web server instead of a web client using Javascript. There
1596+# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
1597+# setting. When disabled, doxygen will generate a PHP script for searching and
1598+# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
1599+# and searching needs to be provided by external tools. See the section
1600+# "External Indexing and Searching" for details.
1601+# The default value is: NO.
1602+# This tag requires that the tag SEARCHENGINE is set to YES.
1603+
1604+SERVER_BASED_SEARCH = NO
1605+
1606+# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP
1607+# script for searching. Instead the search results are written to an XML file
1608+# which needs to be processed by an external indexer. Doxygen will invoke an
1609+# external search engine pointed to by the SEARCHENGINE_URL option to obtain the
1610+# search results.
1611+#
1612+# Doxygen ships with an example indexer (doxyindexer) and search engine
1613+# (doxysearch.cgi) which are based on the open source search engine library
1614+# Xapian (see: http://xapian.org/).
1615+#
1616+# See the section "External Indexing and Searching" for details.
1617+# The default value is: NO.
1618+# This tag requires that the tag SEARCHENGINE is set to YES.
1619+
1620+EXTERNAL_SEARCH = NO
1621+
1622+# The SEARCHENGINE_URL should point to a search engine hosted by a web server
1623+# which will return the search results when EXTERNAL_SEARCH is enabled.
1624+#
1625+# Doxygen ships with an example indexer (doxyindexer) and search engine
1626+# (doxysearch.cgi) which are based on the open source search engine library
1627+# Xapian (see: http://xapian.org/). See the section "External Indexing and
1628+# Searching" for details.
1629+# This tag requires that the tag SEARCHENGINE is set to YES.
1630+
1631+SEARCHENGINE_URL =
1632+
1633+# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
1634+# search data is written to a file for indexing by an external tool. With the
1635+# SEARCHDATA_FILE tag the name of this file can be specified.
1636+# The default file is: searchdata.xml.
1637+# This tag requires that the tag SEARCHENGINE is set to YES.
1638+
1639+SEARCHDATA_FILE = searchdata.xml
1640+
1641+# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the
1642+# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
1643+# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
1644+# projects and redirect the results back to the right project.
1645+# This tag requires that the tag SEARCHENGINE is set to YES.
1646+
1647+EXTERNAL_SEARCH_ID =
1648+
1649+# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
1650+# projects other than the one defined by this configuration file, but that are
1651+# all added to the same external search index. Each project needs to have a
1652+# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of
1653+# to a relative location where the documentation can be found. The format is:
1654+# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...
1655+# This tag requires that the tag SEARCHENGINE is set to YES.
1656+
1657+EXTRA_SEARCH_MAPPINGS =
1658+
1659+#---------------------------------------------------------------------------
1660+# Configuration options related to the LaTeX output
1661+#---------------------------------------------------------------------------
1662+
1663+# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
1664+# The default value is: YES.
1665+
1666+GENERATE_LATEX = NO
1667+
1668+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
1669+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
1670+# it.
1671+# The default directory is: latex.
1672+# This tag requires that the tag GENERATE_LATEX is set to YES.
1673+
1674+LATEX_OUTPUT = latex
1675+
1676+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
1677+# invoked.
1678+#
1679+# Note that when enabling USE_PDFLATEX this option is only used for generating
1680+# bitmaps for formulas in the HTML output, but not in the Makefile that is
1681+# written to the output directory.
1682+# The default file is: latex.
1683+# This tag requires that the tag GENERATE_LATEX is set to YES.
1684+
1685+LATEX_CMD_NAME = latex
1686+
1687+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate
1688+# index for LaTeX.
1689+# The default file is: makeindex.
1690+# This tag requires that the tag GENERATE_LATEX is set to YES.
1691+
1692+MAKEINDEX_CMD_NAME = makeindex
1693+
1694+# If the COMPACT_LATEX tag is set to YES, doxygen generates more compact LaTeX
1695+# documents. This may be useful for small projects and may help to save some
1696+# trees in general.
1697+# The default value is: NO.
1698+# This tag requires that the tag GENERATE_LATEX is set to YES.
1699+
1700+COMPACT_LATEX = NO
1701+
1702+# The PAPER_TYPE tag can be used to set the paper type that is used by the
1703+# printer.
1704+# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x
1705+# 14 inches) and executive (7.25 x 10.5 inches).
1706+# The default value is: a4.
1707+# This tag requires that the tag GENERATE_LATEX is set to YES.
1708+
1709+PAPER_TYPE = a4
1710+
1711+# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names
1712+# that should be included in the LaTeX output. The package can be specified just
1713+# by its name or with the correct syntax as to be used with the LaTeX
1714+# \usepackage command. To get the times font for instance you can specify :
1715+# EXTRA_PACKAGES=times or EXTRA_PACKAGES={times}
1716+# To use the option intlimits with the amsmath package you can specify:
1717+# EXTRA_PACKAGES=[intlimits]{amsmath}
1718+# If left blank no extra packages will be included.
1719+# This tag requires that the tag GENERATE_LATEX is set to YES.
1720+
1721+EXTRA_PACKAGES =
1722+
1723+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for the
1724+# generated LaTeX document. The header should contain everything until the first
1725+# chapter. If it is left blank doxygen will generate a standard header. See
1726+# section "Doxygen usage" for information on how to let doxygen write the
1727+# default header to a separate file.
1728+#
1729+# Note: Only use a user-defined header if you know what you are doing! The
1730+# following commands have a special meaning inside the header: $title,
1731+# $datetime, $date, $doxygenversion, $projectname, $projectnumber,
1732+# $projectbrief, $projectlogo. Doxygen will replace $title with the empty
1733+# string, for the replacement values of the other commands the user is referred
1734+# to HTML_HEADER.
1735+# This tag requires that the tag GENERATE_LATEX is set to YES.
1736+
1737+LATEX_HEADER =
1738+
1739+# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the
1740+# generated LaTeX document. The footer should contain everything after the last
1741+# chapter. If it is left blank doxygen will generate a standard footer. See
1742+# LATEX_HEADER for more information on how to generate a default footer and what
1743+# special commands can be used inside the footer.
1744+#
1745+# Note: Only use a user-defined footer if you know what you are doing!
1746+# This tag requires that the tag GENERATE_LATEX is set to YES.
1747+
1748+LATEX_FOOTER =
1749+
1750+# The LATEX_EXTRA_STYLESHEET tag can be used to specify additional user-defined
1751+# LaTeX style sheets that are included after the standard style sheets created
1752+# by doxygen. Using this option one can overrule certain style aspects. Doxygen
1753+# will copy the style sheet files to the output directory.
1754+# Note: The order of the extra style sheet files is of importance (e.g. the last
1755+# style sheet in the list overrules the setting of the previous ones in the
1756+# list).
1757+# This tag requires that the tag GENERATE_LATEX is set to YES.
1758+
1759+LATEX_EXTRA_STYLESHEET =
1760+
1761+# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or
1762+# other source files which should be copied to the LATEX_OUTPUT output
1763+# directory. Note that the files will be copied as-is; there are no commands or
1764+# markers available.
1765+# This tag requires that the tag GENERATE_LATEX is set to YES.
1766+
1767+LATEX_EXTRA_FILES =
1768+
1769+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is
1770+# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will
1771+# contain links (just like the HTML output) instead of page references. This
1772+# makes the output suitable for online browsing using a PDF viewer.
1773+# The default value is: YES.
1774+# This tag requires that the tag GENERATE_LATEX is set to YES.
1775+
1776+PDF_HYPERLINKS = YES
1777+
1778+# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
1779+# the PDF file directly from the LaTeX files. Set this option to YES, to get a
1780+# higher quality PDF documentation.
1781+# The default value is: YES.
1782+# This tag requires that the tag GENERATE_LATEX is set to YES.
1783+
1784+USE_PDFLATEX = YES
1785+
1786+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \batchmode
1787+# command to the generated LaTeX files. This will instruct LaTeX to keep running
1788+# if errors occur, instead of asking the user for help. This option is also used
1789+# when generating formulas in HTML.
1790+# The default value is: NO.
1791+# This tag requires that the tag GENERATE_LATEX is set to YES.
1792+
1793+LATEX_BATCHMODE = NO
1794+
1795+# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the
1796+# index chapters (such as File Index, Compound Index, etc.) in the output.
1797+# The default value is: NO.
1798+# This tag requires that the tag GENERATE_LATEX is set to YES.
1799+
1800+LATEX_HIDE_INDICES = NO
1801+
1802+# If the LATEX_SOURCE_CODE tag is set to YES then doxygen will include source
1803+# code with syntax highlighting in the LaTeX output.
1804+#
1805+# Note that which sources are shown also depends on other settings such as
1806+# SOURCE_BROWSER.
1807+# The default value is: NO.
1808+# This tag requires that the tag GENERATE_LATEX is set to YES.
1809+
1810+LATEX_SOURCE_CODE = NO
1811+
1812+# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
1813+# bibliography, e.g. plainnat, or ieeetr. See
1814+# http://en.wikipedia.org/wiki/BibTeX and \cite for more info.
1815+# The default value is: plain.
1816+# This tag requires that the tag GENERATE_LATEX is set to YES.
1817+
1818+LATEX_BIB_STYLE = plain
1819+
1820+# If the LATEX_TIMESTAMP tag is set to YES then the footer of each generated
1821+# page will contain the date and time when the page was generated. Setting this
1822+# to NO can help when comparing the output of multiple runs.
1823+# The default value is: NO.
1824+# This tag requires that the tag GENERATE_LATEX is set to YES.
1825+
1826+LATEX_TIMESTAMP = NO
1827+
1828+#---------------------------------------------------------------------------
1829+# Configuration options related to the RTF output
1830+#---------------------------------------------------------------------------
1831+
1832+# If the GENERATE_RTF tag is set to YES, doxygen will generate RTF output. The
1833+# RTF output is optimized for Word 97 and may not look too pretty with other RTF
1834+# readers/editors.
1835+# The default value is: NO.
1836+
1837+GENERATE_RTF = NO
1838+
1839+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a
1840+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
1841+# it.
1842+# The default directory is: rtf.
1843+# This tag requires that the tag GENERATE_RTF is set to YES.
1844+
1845+RTF_OUTPUT = rtf
1846+
1847+# If the COMPACT_RTF tag is set to YES, doxygen generates more compact RTF
1848+# documents. This may be useful for small projects and may help to save some
1849+# trees in general.
1850+# The default value is: NO.
1851+# This tag requires that the tag GENERATE_RTF is set to YES.
1852+
1853+COMPACT_RTF = NO
1854+
1855+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will
1856+# contain hyperlink fields. The RTF file will contain links (just like the HTML
1857+# output) instead of page references. This makes the output suitable for online
1858+# browsing using Word or some other Word compatible readers that support those
1859+# fields.
1860+#
1861+# Note: WordPad (write) and others do not support links.
1862+# The default value is: NO.
1863+# This tag requires that the tag GENERATE_RTF is set to YES.
1864+
1865+RTF_HYPERLINKS = NO
1866+
1867+# Load stylesheet definitions from file. Syntax is similar to doxygen's config
1868+# file, i.e. a series of assignments. You only have to provide replacements,
1869+# missing definitions are set to their default value.
1870+#
1871+# See also section "Doxygen usage" for information on how to generate the
1872+# default style sheet that doxygen normally uses.
1873+# This tag requires that the tag GENERATE_RTF is set to YES.
1874+
1875+RTF_STYLESHEET_FILE =
1876+
1877+# Set optional variables used in the generation of an RTF document. Syntax is
1878+# similar to doxygen's config file. A template extensions file can be generated
1879+# using doxygen -e rtf extensionFile.
1880+# This tag requires that the tag GENERATE_RTF is set to YES.
1881+
1882+RTF_EXTENSIONS_FILE =
1883+
1884+# If the RTF_SOURCE_CODE tag is set to YES then doxygen will include source code
1885+# with syntax highlighting in the RTF output.
1886+#
1887+# Note that which sources are shown also depends on other settings such as
1888+# SOURCE_BROWSER.
1889+# The default value is: NO.
1890+# This tag requires that the tag GENERATE_RTF is set to YES.
1891+
1892+RTF_SOURCE_CODE = NO
1893+
1894+#---------------------------------------------------------------------------
1895+# Configuration options related to the man page output
1896+#---------------------------------------------------------------------------
1897+
1898+# If the GENERATE_MAN tag is set to YES, doxygen will generate man pages for
1899+# classes and files.
1900+# The default value is: NO.
1901+
1902+GENERATE_MAN = NO
1903+
1904+# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a
1905+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
1906+# it. A directory man3 will be created inside the directory specified by
1907+# MAN_OUTPUT.
1908+# The default directory is: man.
1909+# This tag requires that the tag GENERATE_MAN is set to YES.
1910+
1911+MAN_OUTPUT = man
1912+
1913+# The MAN_EXTENSION tag determines the extension that is added to the generated
1914+# man pages. In case the manual section does not start with a number, the number
1915+# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is
1916+# optional.
1917+# The default value is: .3.
1918+# This tag requires that the tag GENERATE_MAN is set to YES.
1919+
1920+MAN_EXTENSION = .3
1921+
1922+# The MAN_SUBDIR tag determines the name of the directory created within
1923+# MAN_OUTPUT in which the man pages are placed. If defaults to man followed by
1924+# MAN_EXTENSION with the initial . removed.
1925+# This tag requires that the tag GENERATE_MAN is set to YES.
1926+
1927+MAN_SUBDIR =
1928+
1929+# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it
1930+# will generate one additional man file for each entity documented in the real
1931+# man page(s). These additional files only source the real man page, but without
1932+# them the man command would be unable to find the correct page.
1933+# The default value is: NO.
1934+# This tag requires that the tag GENERATE_MAN is set to YES.
1935+
1936+MAN_LINKS = NO
1937+
1938+#---------------------------------------------------------------------------
1939+# Configuration options related to the XML output
1940+#---------------------------------------------------------------------------
1941+
1942+# If the GENERATE_XML tag is set to YES, doxygen will generate an XML file that
1943+# captures the structure of the code including all documentation.
1944+# The default value is: NO.
1945+
1946+GENERATE_XML = NO
1947+
1948+# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
1949+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
1950+# it.
1951+# The default directory is: xml.
1952+# This tag requires that the tag GENERATE_XML is set to YES.
1953+
1954+XML_OUTPUT = xml
1955+
1956+# If the XML_PROGRAMLISTING tag is set to YES, doxygen will dump the program
1957+# listings (including syntax highlighting and cross-referencing information) to
1958+# the XML output. Note that enabling this will significantly increase the size
1959+# of the XML output.
1960+# The default value is: YES.
1961+# This tag requires that the tag GENERATE_XML is set to YES.
1962+
1963+XML_PROGRAMLISTING = YES
1964+
1965+#---------------------------------------------------------------------------
1966+# Configuration options related to the DOCBOOK output
1967+#---------------------------------------------------------------------------
1968+
1969+# If the GENERATE_DOCBOOK tag is set to YES, doxygen will generate Docbook files
1970+# that can be used to generate PDF.
1971+# The default value is: NO.
1972+
1973+GENERATE_DOCBOOK = NO
1974+
1975+# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.
1976+# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in
1977+# front of it.
1978+# The default directory is: docbook.
1979+# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
1980+
1981+DOCBOOK_OUTPUT = docbook
1982+
1983+# If the DOCBOOK_PROGRAMLISTING tag is set to YES, doxygen will include the
1984+# program listings (including syntax highlighting and cross-referencing
1985+# information) to the DOCBOOK output. Note that enabling this will significantly
1986+# increase the size of the DOCBOOK output.
1987+# The default value is: NO.
1988+# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
1989+
1990+DOCBOOK_PROGRAMLISTING = NO
1991+
1992+#---------------------------------------------------------------------------
1993+# Configuration options for the AutoGen Definitions output
1994+#---------------------------------------------------------------------------
1995+
1996+# If the GENERATE_AUTOGEN_DEF tag is set to YES, doxygen will generate an
1997+# AutoGen Definitions (see http://autogen.sf.net) file that captures the
1998+# structure of the code including all documentation. Note that this feature is
1999+# still experimental and incomplete at the moment.
2000+# The default value is: NO.
2001+
2002+GENERATE_AUTOGEN_DEF = NO
2003+
2004+#---------------------------------------------------------------------------
2005+# Configuration options related to the Perl module output
2006+#---------------------------------------------------------------------------
2007+
2008+# If the GENERATE_PERLMOD tag is set to YES, doxygen will generate a Perl module
2009+# file that captures the structure of the code including all documentation.
2010+#
2011+# Note that this feature is still experimental and incomplete at the moment.
2012+# The default value is: NO.
2013+
2014+GENERATE_PERLMOD = NO
2015+
2016+# If the PERLMOD_LATEX tag is set to YES, doxygen will generate the necessary
2017+# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI
2018+# output from the Perl module output.
2019+# The default value is: NO.
2020+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
2021+
2022+PERLMOD_LATEX = NO
2023+
2024+# If the PERLMOD_PRETTY tag is set to YES, the Perl module output will be nicely
2025+# formatted so it can be parsed by a human reader. This is useful if you want to
2026+# understand what is going on. On the other hand, if this tag is set to NO, the
2027+# size of the Perl module output will be much smaller and Perl will parse it
2028+# just the same.
2029+# The default value is: YES.
2030+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
2031+
2032+PERLMOD_PRETTY = YES
2033+
2034+# The names of the make variables in the generated doxyrules.make file are
2035+# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful
2036+# so different doxyrules.make files included by the same Makefile don't
2037+# overwrite each other's variables.
2038+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
2039+
2040+PERLMOD_MAKEVAR_PREFIX =
2041+
2042+#---------------------------------------------------------------------------
2043+# Configuration options related to the preprocessor
2044+#---------------------------------------------------------------------------
2045+
2046+# If the ENABLE_PREPROCESSING tag is set to YES, doxygen will evaluate all
2047+# C-preprocessor directives found in the sources and include files.
2048+# The default value is: YES.
2049+
2050+ENABLE_PREPROCESSING = YES
2051+
2052+# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names
2053+# in the source code. If set to NO, only conditional compilation will be
2054+# performed. Macro expansion can be done in a controlled way by setting
2055+# EXPAND_ONLY_PREDEF to YES.
2056+# The default value is: NO.
2057+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
2058+
2059+MACRO_EXPANSION = NO
2060+
2061+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
2062+# the macro expansion is limited to the macros specified with the PREDEFINED and
2063+# EXPAND_AS_DEFINED tags.
2064+# The default value is: NO.
2065+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
2066+
2067+EXPAND_ONLY_PREDEF = NO
2068+
2069+# If the SEARCH_INCLUDES tag is set to YES, the include files in the
2070+# INCLUDE_PATH will be searched if a #include is found.
2071+# The default value is: YES.
2072+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
2073+
2074+SEARCH_INCLUDES = YES
2075+
2076+# The INCLUDE_PATH tag can be used to specify one or more directories that
2077+# contain include files that are not input files but should be processed by the
2078+# preprocessor.
2079+# This tag requires that the tag SEARCH_INCLUDES is set to YES.
2080+
2081+INCLUDE_PATH =
2082+
2083+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
2084+# patterns (like *.h and *.hpp) to filter out the header-files in the
2085+# directories. If left blank, the patterns specified with FILE_PATTERNS will be
2086+# used.
2087+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
2088+
2089+INCLUDE_FILE_PATTERNS =
2090+
2091+# The PREDEFINED tag can be used to specify one or more macro names that are
2092+# defined before the preprocessor is started (similar to the -D option of e.g.
2093+# gcc). The argument of the tag is a list of macros of the form: name or
2094+# name=definition (no spaces). If the definition and the "=" are omitted, "=1"
2095+# is assumed. To prevent a macro definition from being undefined via #undef or
2096+# recursively expanded use the := operator instead of the = operator.
2097+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
2098+
2099+PREDEFINED =
2100+
2101+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
2102+# tag can be used to specify a list of macro names that should be expanded. The
2103+# macro definition that is found in the sources will be used. Use the PREDEFINED
2104+# tag if you want to use a different macro definition that overrules the
2105+# definition found in the source code.
2106+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
2107+
2108+EXPAND_AS_DEFINED =
2109+
2110+# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
2111+# remove all references to function-like macros that are alone on a line, have
2112+# an all uppercase name, and do not end with a semicolon. Such function macros
2113+# are typically used for boiler-plate code, and will confuse the parser if not
2114+# removed.
2115+# The default value is: YES.
2116+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
2117+
2118+SKIP_FUNCTION_MACROS = YES
2119+
2120+#---------------------------------------------------------------------------
2121+# Configuration options related to external references
2122+#---------------------------------------------------------------------------
2123+
2124+# The TAGFILES tag can be used to specify one or more tag files. For each tag
2125+# file the location of the external documentation should be added. The format of
2126+# a tag file without this location is as follows:
2127+# TAGFILES = file1 file2 ...
2128+# Adding location for the tag files is done as follows:
2129+# TAGFILES = file1=loc1 "file2 = loc2" ...
2130+# where loc1 and loc2 can be relative or absolute paths or URLs. See the
2131+# section "Linking to external documentation" for more information about the use
2132+# of tag files.
2133+# Note: Each tag file must have a unique name (where the name does NOT include
2134+# the path). If a tag file is not located in the directory in which doxygen is
2135+# run, you must also specify the path to the tagfile here.
2136+
2137+TAGFILES =
2138+
2139+# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
2140+# tag file that is based on the input files it reads. See section "Linking to
2141+# external documentation" for more information about the usage of tag files.
2142+
2143+GENERATE_TAGFILE =
2144+
2145+# If the ALLEXTERNALS tag is set to YES, all external class will be listed in
2146+# the class index. If set to NO, only the inherited external classes will be
2147+# listed.
2148+# The default value is: NO.
2149+
2150+ALLEXTERNALS = NO
2151+
2152+# If the EXTERNAL_GROUPS tag is set to YES, all external groups will be listed
2153+# in the modules index. If set to NO, only the current project's groups will be
2154+# listed.
2155+# The default value is: YES.
2156+
2157+EXTERNAL_GROUPS = YES
2158+
2159+# If the EXTERNAL_PAGES tag is set to YES, all external pages will be listed in
2160+# the related pages index. If set to NO, only the current project's pages will
2161+# be listed.
2162+# The default value is: YES.
2163+
2164+EXTERNAL_PAGES = YES
2165+
2166+# The PERL_PATH should be the absolute path and name of the perl script
2167+# interpreter (i.e. the result of 'which perl').
2168+# The default file (with absolute path) is: /usr/bin/perl.
2169+
2170+PERL_PATH = /usr/bin/perl
2171+
2172+#---------------------------------------------------------------------------
2173+# Configuration options related to the dot tool
2174+#---------------------------------------------------------------------------
2175+
2176+# If the CLASS_DIAGRAMS tag is set to YES, doxygen will generate a class diagram
2177+# (in HTML and LaTeX) for classes with base or super classes. Setting the tag to
2178+# NO turns the diagrams off. Note that this option also works with HAVE_DOT
2179+# disabled, but it is recommended to install and use dot, since it yields more
2180+# powerful graphs.
2181+# The default value is: YES.
2182+
2183+CLASS_DIAGRAMS = YES
2184+
2185+# You can define message sequence charts within doxygen comments using the \msc
2186+# command. Doxygen will then run the mscgen tool (see:
2187+# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the
2188+# documentation. The MSCGEN_PATH tag allows you to specify the directory where
2189+# the mscgen tool resides. If left empty the tool is assumed to be found in the
2190+# default search path.
2191+
2192+MSCGEN_PATH =
2193+
2194+# You can include diagrams made with dia in doxygen documentation. Doxygen will
2195+# then run dia to produce the diagram and insert it in the documentation. The
2196+# DIA_PATH tag allows you to specify the directory where the dia binary resides.
2197+# If left empty dia is assumed to be found in the default search path.
2198+
2199+DIA_PATH =
2200+
2201+# If set to YES the inheritance and collaboration graphs will hide inheritance
2202+# and usage relations if the target is undocumented or is not a class.
2203+# The default value is: YES.
2204+
2205+HIDE_UNDOC_RELATIONS = YES
2206+
2207+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
2208+# available from the path. This tool is part of Graphviz (see:
2209+# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent
2210+# Bell Labs. The other options in this section have no effect if this option is
2211+# set to NO
2212+# The default value is: NO.
2213+
2214+HAVE_DOT = NO
2215+
2216+# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed
2217+# to run in parallel. When set to 0 doxygen will base this on the number of
2218+# processors available in the system. You can set it explicitly to a value
2219+# larger than 0 to get control over the balance between CPU load and processing
2220+# speed.
2221+# Minimum value: 0, maximum value: 32, default value: 0.
2222+# This tag requires that the tag HAVE_DOT is set to YES.
2223+
2224+DOT_NUM_THREADS = 0
2225+
2226+# When you want a differently looking font in the dot files that doxygen
2227+# generates you can specify the font name using DOT_FONTNAME. You need to make
2228+# sure dot is able to find the font, which can be done by putting it in a
2229+# standard location or by setting the DOTFONTPATH environment variable or by
2230+# setting DOT_FONTPATH to the directory containing the font.
2231+# The default value is: Helvetica.
2232+# This tag requires that the tag HAVE_DOT is set to YES.
2233+
2234+DOT_FONTNAME = Helvetica
2235+
2236+# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of
2237+# dot graphs.
2238+# Minimum value: 4, maximum value: 24, default value: 10.
2239+# This tag requires that the tag HAVE_DOT is set to YES.
2240+
2241+DOT_FONTSIZE = 10
2242+
2243+# By default doxygen will tell dot to use the default font as specified with
2244+# DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set
2245+# the path where dot can find it using this tag.
2246+# This tag requires that the tag HAVE_DOT is set to YES.
2247+
2248+DOT_FONTPATH =
2249+
2250+# If the CLASS_GRAPH tag is set to YES then doxygen will generate a graph for
2251+# each documented class showing the direct and indirect inheritance relations.
2252+# Setting this tag to YES will force the CLASS_DIAGRAMS tag to NO.
2253+# The default value is: YES.
2254+# This tag requires that the tag HAVE_DOT is set to YES.
2255+
2256+CLASS_GRAPH = YES
2257+
2258+# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a
2259+# graph for each documented class showing the direct and indirect implementation
2260+# dependencies (inheritance, containment, and class references variables) of the
2261+# class with other documented classes.
2262+# The default value is: YES.
2263+# This tag requires that the tag HAVE_DOT is set to YES.
2264+
2265+COLLABORATION_GRAPH = YES
2266+
2267+# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for
2268+# groups, showing the direct groups dependencies.
2269+# The default value is: YES.
2270+# This tag requires that the tag HAVE_DOT is set to YES.
2271+
2272+GROUP_GRAPHS = YES
2273+
2274+# If the UML_LOOK tag is set to YES, doxygen will generate inheritance and
2275+# collaboration diagrams in a style similar to the OMG's Unified Modeling
2276+# Language.
2277+# The default value is: NO.
2278+# This tag requires that the tag HAVE_DOT is set to YES.
2279+
2280+UML_LOOK = NO
2281+
2282+# If the UML_LOOK tag is enabled, the fields and methods are shown inside the
2283+# class node. If there are many fields or methods and many nodes the graph may
2284+# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the
2285+# number of items for each type to make the size more manageable. Set this to 0
2286+# for no limit. Note that the threshold may be exceeded by 50% before the limit
2287+# is enforced. So when you set the threshold to 10, up to 15 fields may appear,
2288+# but if the number exceeds 15, the total amount of fields shown is limited to
2289+# 10.
2290+# Minimum value: 0, maximum value: 100, default value: 10.
2291+# This tag requires that the tag HAVE_DOT is set to YES.
2292+
2293+UML_LIMIT_NUM_FIELDS = 10
2294+
2295+# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and
2296+# collaboration graphs will show the relations between templates and their
2297+# instances.
2298+# The default value is: NO.
2299+# This tag requires that the tag HAVE_DOT is set to YES.
2300+
2301+TEMPLATE_RELATIONS = NO
2302+
2303+# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to
2304+# YES then doxygen will generate a graph for each documented file showing the
2305+# direct and indirect include dependencies of the file with other documented
2306+# files.
2307+# The default value is: YES.
2308+# This tag requires that the tag HAVE_DOT is set to YES.
2309+
2310+INCLUDE_GRAPH = YES
2311+
2312+# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are
2313+# set to YES then doxygen will generate a graph for each documented file showing
2314+# the direct and indirect include dependencies of the file with other documented
2315+# files.
2316+# The default value is: YES.
2317+# This tag requires that the tag HAVE_DOT is set to YES.
2318+
2319+INCLUDED_BY_GRAPH = YES
2320+
2321+# If the CALL_GRAPH tag is set to YES then doxygen will generate a call
2322+# dependency graph for every global function or class method.
2323+#
2324+# Note that enabling this option will significantly increase the time of a run.
2325+# So in most cases it will be better to enable call graphs for selected
2326+# functions only using the \callgraph command. Disabling a call graph can be
2327+# accomplished by means of the command \hidecallgraph.
2328+# The default value is: NO.
2329+# This tag requires that the tag HAVE_DOT is set to YES.
2330+
2331+CALL_GRAPH = NO
2332+
2333+# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller
2334+# dependency graph for every global function or class method.
2335+#
2336+# Note that enabling this option will significantly increase the time of a run.
2337+# So in most cases it will be better to enable caller graphs for selected
2338+# functions only using the \callergraph command. Disabling a caller graph can be
2339+# accomplished by means of the command \hidecallergraph.
2340+# The default value is: NO.
2341+# This tag requires that the tag HAVE_DOT is set to YES.
2342+
2343+CALLER_GRAPH = NO
2344+
2345+# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical
2346+# hierarchy of all classes instead of a textual one.
2347+# The default value is: YES.
2348+# This tag requires that the tag HAVE_DOT is set to YES.
2349+
2350+GRAPHICAL_HIERARCHY = YES
2351+
2352+# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the
2353+# dependencies a directory has on other directories in a graphical way. The
2354+# dependency relations are determined by the #include relations between the
2355+# files in the directories.
2356+# The default value is: YES.
2357+# This tag requires that the tag HAVE_DOT is set to YES.
2358+
2359+DIRECTORY_GRAPH = YES
2360+
2361+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
2362+# generated by dot. For an explanation of the image formats see the section
2363+# output formats in the documentation of the dot tool (Graphviz (see:
2364+# http://www.graphviz.org/)).
2365+# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order
2366+# to make the SVG files visible in IE 9+ (other browsers do not have this
2367+# requirement).
2368+# Possible values are: png, jpg, gif, svg, png:gd, png:gd:gd, png:cairo,
2369+# png:cairo:gd, png:cairo:cairo, png:cairo:gdiplus, png:gdiplus and
2370+# png:gdiplus:gdiplus.
2371+# The default value is: png.
2372+# This tag requires that the tag HAVE_DOT is set to YES.
2373+
2374+DOT_IMAGE_FORMAT = png
2375+
2376+# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
2377+# enable generation of interactive SVG images that allow zooming and panning.
2378+#
2379+# Note that this requires a modern browser other than Internet Explorer. Tested
2380+# and working are Firefox, Chrome, Safari, and Opera.
2381+# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make
2382+# the SVG files visible. Older versions of IE do not have SVG support.
2383+# The default value is: NO.
2384+# This tag requires that the tag HAVE_DOT is set to YES.
2385+
2386+INTERACTIVE_SVG = NO
2387+
2388+# The DOT_PATH tag can be used to specify the path where the dot tool can be
2389+# found. If left blank, it is assumed the dot tool can be found in the path.
2390+# This tag requires that the tag HAVE_DOT is set to YES.
2391+
2392+DOT_PATH =
2393+
2394+# The DOTFILE_DIRS tag can be used to specify one or more directories that
2395+# contain dot files that are included in the documentation (see the \dotfile
2396+# command).
2397+# This tag requires that the tag HAVE_DOT is set to YES.
2398+
2399+DOTFILE_DIRS =
2400+
2401+# The MSCFILE_DIRS tag can be used to specify one or more directories that
2402+# contain msc files that are included in the documentation (see the \mscfile
2403+# command).
2404+
2405+MSCFILE_DIRS =
2406+
2407+# The DIAFILE_DIRS tag can be used to specify one or more directories that
2408+# contain dia files that are included in the documentation (see the \diafile
2409+# command).
2410+
2411+DIAFILE_DIRS =
2412+
2413+# When using plantuml, the PLANTUML_JAR_PATH tag should be used to specify the
2414+# path where java can find the plantuml.jar file. If left blank, it is assumed
2415+# PlantUML is not used or called during a preprocessing step. Doxygen will
2416+# generate a warning when it encounters a \startuml command in this case and
2417+# will not generate output for the diagram.
2418+
2419+PLANTUML_JAR_PATH =
2420+
2421+# When using plantuml, the PLANTUML_CFG_FILE tag can be used to specify a
2422+# configuration file for plantuml.
2423+
2424+PLANTUML_CFG_FILE =
2425+
2426+# When using plantuml, the specified paths are searched for files specified by
2427+# the !include statement in a plantuml block.
2428+
2429+PLANTUML_INCLUDE_PATH =
2430+
2431+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
2432+# that will be shown in the graph. If the number of nodes in a graph becomes
2433+# larger than this value, doxygen will truncate the graph, which is visualized
2434+# by representing a node as a red box. Note that doxygen if the number of direct
2435+# children of the root node in a graph is already larger than
2436+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that
2437+# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
2438+# Minimum value: 0, maximum value: 10000, default value: 50.
2439+# This tag requires that the tag HAVE_DOT is set to YES.
2440+
2441+DOT_GRAPH_MAX_NODES = 50
2442+
2443+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
2444+# generated by dot. A depth value of 3 means that only nodes reachable from the
2445+# root by following a path via at most 3 edges will be shown. Nodes that lay
2446+# further from the root node will be omitted. Note that setting this option to 1
2447+# or 2 may greatly reduce the computation time needed for large code bases. Also
2448+# note that the size of a graph can be further restricted by
2449+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
2450+# Minimum value: 0, maximum value: 1000, default value: 0.
2451+# This tag requires that the tag HAVE_DOT is set to YES.
2452+
2453+MAX_DOT_GRAPH_DEPTH = 0
2454+
2455+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
2456+# background. This is disabled by default, because dot on Windows does not seem
2457+# to support this out of the box.
2458+#
2459+# Warning: Depending on the platform used, enabling this option may lead to
2460+# badly anti-aliased labels on the edges of a graph (i.e. they become hard to
2461+# read).
2462+# The default value is: NO.
2463+# This tag requires that the tag HAVE_DOT is set to YES.
2464+
2465+DOT_TRANSPARENT = NO
2466+
2467+# Set the DOT_MULTI_TARGETS tag to YES to allow dot to generate multiple output
2468+# files in one run (i.e. multiple -o and -T options on the command line). This
2469+# makes dot run faster, but since only newer versions of dot (>1.8.10) support
2470+# this, this feature is disabled by default.
2471+# The default value is: NO.
2472+# This tag requires that the tag HAVE_DOT is set to YES.
2473+
2474+DOT_MULTI_TARGETS = NO
2475+
2476+# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page
2477+# explaining the meaning of the various boxes and arrows in the dot generated
2478+# graphs.
2479+# The default value is: YES.
2480+# This tag requires that the tag HAVE_DOT is set to YES.
2481+
2482+GENERATE_LEGEND = YES
2483+
2484+# If the DOT_CLEANUP tag is set to YES, doxygen will remove the intermediate dot
2485+# files that are used to generate the various graphs.
2486+# The default value is: YES.
2487+# This tag requires that the tag HAVE_DOT is set to YES.
2488+
2489+DOT_CLEANUP = YES
2490
2491=== added directory 'Docs/developer/ford-media'
2492=== added file 'Docs/developer/ford-media/Interactions.png'
2493Binary files Docs/developer/ford-media/Interactions.png 1970-01-01 00:00:00 +0000 and Docs/developer/ford-media/Interactions.png 2018-09-12 13:10:27 +0000 differ
2494=== added file 'Docs/developer/ford-media/RectangularMatrix.png'
2495Binary files Docs/developer/ford-media/RectangularMatrix.png 1970-01-01 00:00:00 +0000 and Docs/developer/ford-media/RectangularMatrix.png 2018-09-12 13:10:27 +0000 differ
2496=== added directory 'Docs/developer/ford-pages'
2497=== added directory 'Docs/developer/ford-pages/datastructures'
2498=== added file 'Docs/developer/ford-pages/datastructures/1-buds.md'
2499--- Docs/developer/ford-pages/datastructures/1-buds.md 1970-01-01 00:00:00 +0000
2500+++ Docs/developer/ford-pages/datastructures/1-buds.md 2018-09-12 13:10:27 +0000
2501@@ -0,0 +1,59 @@
2502+title: Reference-counted derived types
2503+
2504+(Work in progress)
2505+
2506+Derived types are a very useful addition to a programming
2507+language. They allow to keep together in the same place a number or
2508+related variables.
2509+
2510+Sometimes, the same basic data in a derived-type variable needs to be
2511+associated to larger data structures. The sparsity pattern of SIESTA
2512+matrices is an example: every matrix in the program (for a given
2513+geometry) uses the same sparse indexing arrays. Traditionally, there
2514+was a set of global arrays (numh, listh, etc) that would take care of
2515+the indexing throughout. With derived types, those arrays could be put in
2516+a "sparsity_info" variable for easier handling.
2517+
2518+Now consider what would happen if one wants to implement an
2519+extrapolation scheme for density matrices in molecular-dynamics
2520+runs. We must keep some past history of "geometry/density matrix"
2521+pairs. Since different geometries need potentially different indexing
2522+arrays, the old "array set" scheme would break down very soon (a
2523+primitive extrapolation was implemented at some point, with only one
2524+previous geometry: it used numh_old, listh_old, etc arrays...), and
2525+the bookeeping was already a nightmare.
2526+
2527+With the derived-type approach, one could keep an array of
2528+sparsity_info elements, and associate them somehow to the relevant
2529+density-matrix and geometry history (maybe implemented also as
2530+arrays). This is do-able but also complicated.
2531+
2532+Now imagine that the density matrix "object" contains within itself a
2533+pointer to the relevant "sparsity_info" object, and that a
2534+finite-stack of geometry/density-matrix objects is implemented. The
2535+extrapolation algorithm can transparently use the stack metaphor
2536+(which is the appropriate one for a finite-length re-cyclable
2537+history), and forget about the array bookeeping. When the information
2538+for a geometry step is no longer needed, the objects can be destroyed,
2539+taking care that no other object in the program is using references to
2540+the internal data. This can be easily achieved by implementing
2541+[reference counting](https://en.wikipedia.org/wiki/Reference_counting).
2542+
2543+In SIESTA, reference-counted derived types (and containers) are
2544+implemented in modules whose name begins with `class` (this is an
2545+unfortunate, probably temporary, choice), and use
2546+[templates](https://en.wikipedia.org/wiki/Template_metaprogramming) to
2547+support containers of various types.
2548+
2549+For example, the sparsity pattern "bud" is defined in [[class_sparsity]], and
2550+the containers involved in density-matrix extrapolation are
2551+
2552+* A "sparse-2D matrix" bud, defined in
2553+* A pair container, defined in "class_Pair..."
2554+* A finite-stack container, defined in " ...."
2555+
2556+Template files have `.T90` extensions.
2557+
2558+The basic implementation of reference counting and the associated
2559+functionality is in the [[basic_type.inc]] file.
2560+
2561
2562=== added file 'Docs/developer/ford-pages/datastructures/2-sparse.md'
2563--- Docs/developer/ford-pages/datastructures/2-sparse.md 1970-01-01 00:00:00 +0000
2564+++ Docs/developer/ford-pages/datastructures/2-sparse.md 2018-09-12 13:10:27 +0000
2565@@ -0,0 +1,74 @@
2566+title: Sparse Matrices in SIESTA
2567+
2568+Sparse matrices are widespread in Siesta due to the use of a basis set
2569+of finite-range atomic orbitals. Matrix elements between orbitals
2570+which are "too far" from each other are zero, leading to sparse
2571+matrices for all but the smallest systems.
2572+
2573+The following discussion is focused on the global data found in [[sparse_matrices]].
2574+
2575+Take the Hamiltonian. If `no_u` is the number of orbitals, its matrix
2576+elements \(H_{\mu\nu}\) can be simply arranged in a square matrix with
2577+`no_u` rows and columns.
2578+
2579+In the presence of a sizable number of zeros, it pays to represent
2580+this matrix in a more compact form.
2581+
2582+The sparse matrix is in CSR/CSC matrix format with some slight
2583+differences from the elsewhere found CSR format. Because Siesta
2584+(primarily) deals with Hermitian matrices, CSR and CSC are equivalent.
2585+In Siesta the CSR format is composed of the following (integer) components.
2586+
2587+* `maxnh`:
2588+ number of total non-zero elements (sum of numh array)
2589+* `numh(no_u)`:
2590+ number of non-zero elements each orbital connects too
2591+ @note
2592+ This is a specific to Siesta, since many
2593+ sparse implementations of CSR matrices in Fortran use
2594+ only the `listhptr` array with one more element.
2595+ @endnote
2596+* `listhptr(no_u)`
2597+ index pointer to listh such that `listh(listhptr(1) + 1)`
2598+ is the first non-zero element of orbital 1.
2599+ `listh(listhptr(io) + 1)` is thus the first non-zero element
2600+ of orbital 'io' while `listh(listhptr(io) + numh(io))` is the
2601+ last non-zero element of orbital 'io'.
2602+ @note
2603+ `listhptr` is 0-based (`listhptr(1) == 0`, ALWAYS)
2604+ while many implementations in Fortran would have used listhptr(1) == 1
2605+ this is not so in Siesta. Secondly, in other typical CSR implementations
2606+ this array would be of size `no_u + 1` with `listhptr(no_u+1) == maxnh + 1`.
2607+ @endnote
2608+* `listh(maxnh)`:
2609+ the column indices for the non-zero elements.
2610+ `listh(listhptr(io)+1)`
2611+ would correspond to the element `M(io, listh(listhptr(io)+1))`
2612+
2613+Note that these matrices are 1D block cyclic distributed and the
2614+routines found in [[class_OrbitalDistribution]] or module [[parallelsubs]]
2615+are required to translate local rows to global rows (columns
2616+are not distributed).
2617+
2618+The discussion above assumes that only a single MPI node is used
2619+such that `no_l == no_u`, where the former is the number of distributed
2620+rows on the MPI node.
2621+
2622+See the discussion of the [auxiliary supercell](|page|/implementation/1-auxiliary-supercell.html) for the modifications
2623+introduced by the support for periodic systems with k-point sampling.
2624+
2625+The sparse pattern information is handled by the program in two forms:
2626+
2627+* Through a set of arrays, as mentioned above.
2628+* Through a [reference-counted](|page|/datastructures/1-buds.html) derived type [[class_Sparsity:sparsity]] and its instantiation in ([[sparse_matrices:sparse_pattern]]).
2629+ The old arrays are *actually* pointing to the arrays in the variable `sparse_pattern`.
2630+
2631+
2632+@note
2633+ The suffix 'h' (`numh`, `maxh`, ...) is a legacy name and should be avoided
2634+ in subsequent usages (i.e. when new routines are being passed the above arrays
2635+ or the sparse_pattern.
2636+ Currently Siesta does not distinguish between H/DM/S/EDM/... sparsity patterns
2637+ and thus the sparse pattern is not specific to any physical array, it is a global
2638+ definition of all sparse matrices used in Siesta.
2639+@endnote
2640
2641=== added file 'Docs/developer/ford-pages/datastructures/index.md'
2642--- Docs/developer/ford-pages/datastructures/index.md 1970-01-01 00:00:00 +0000
2643+++ Docs/developer/ford-pages/datastructures/index.md 2018-09-12 13:10:27 +0000
2644@@ -0,0 +1,8 @@
2645+title: Data structures
2646+
2647+In this section we describe the data structures used throughout Siesta.
2648+
2649+All data-structures are considered generic, in the sense that they may be
2650+exported to other projects if so desired.
2651+There will, however, be links to specific files where the datastructures are used.
2652+
2653
2654=== added directory 'Docs/developer/ford-pages/implementation'
2655=== added file 'Docs/developer/ford-pages/implementation/1-auxiliary-supercell.md'
2656--- Docs/developer/ford-pages/implementation/1-auxiliary-supercell.md 1970-01-01 00:00:00 +0000
2657+++ Docs/developer/ford-pages/implementation/1-auxiliary-supercell.md 2018-09-12 13:10:27 +0000
2658@@ -0,0 +1,133 @@
2659+title: Auxiliary Supercell
2660+
2661+For periodic systems SIESTA uses an auxiliary supercell as an indexing
2662+tool to represent all the orbital interactions present in the
2663+Hamiltonian (and other matrices). These interactions can extend to
2664+orbitals beyond the unit cell, so extra bookeeping is needed
2665+beyond the simple \(H_{\mu\nu}\) notation used previously.
2666+
2667+Consider the simplified system depicted in the figure below. The unit
2668+cell contains two atoms (open and black circles) with a single orbital
2669+each (orbitals are not marked to avoid clutter). The orbitals of the
2670+atoms in the unit cell at the center of the figure overlap with those
2671+of other atoms in the crystal whenever the distance between atoms is
2672+less than the sum of the orbital ranges. In the figure these
2673+interactions extend to the first-neighboring cells only. In this
2674+two-dimensional example, the atoms in the unit cell interact with
2675+those in nine cells, and this geometrical construct is fit to
2676+represent the complete set of non-zero Hamiltonian matrix elements
2677+\(H_{\mu\nu}({\mathbf R}) \), where \(\mu\) and \(\nu\) are orbital
2678+indexes (ranging over the unit cell only) and \({\mathbf R}\) is a
2679+relative vector from the unit cell. This vector could just be a cell
2680+lattice vector, but in practice SIESTA uses the relative vector
2681+between the atoms involved.
2682+
2683+![Orbital Interactions](|media|/Interactions.png "Orbital interactions")
2684+{: style="text-align: center" ; width="50%" }
2685+
2686+There are multiple image interactions for the same pair, each
2687+associated with a different \({\mathbf R}\). The set of nine cells is the
2688+auxiliary supercell. In this case it is a 3x3 repetition of the unit
2689+cell, and the "3" can be seen as "2x1+1": the central cell plus one
2690+neighboring cell in either side. We can also represent the
2691+interactions with a rectangular matrix:
2692+
2693+![RectangularMatrix](|media|/RectangularMatrix.png "Interaction
2694+Matrix")
2695+
2696+
2697+which has a row for each unit-cell orbital, and as many columns as
2698+orbitals in the nine cells involved in the interactions. Any matrix
2699+element $$H_{\mu\nu}({\mathbf R}) = \langle\phi_\mu({\mathbf R=0})|H|\phi_\nu({\mathbf
2700+R})\rangle$$ can be stored by itself in the appropriate slot.
2701+
2702+When it it time to build the Hamiltonian matrix for a given k-point \({\mathbf k}\):
2703+
2704+$$ H_{\mu\nu}({\mathbf k}) =
2705+\sum_{\mathbf R} { H_{\mu\nu}({\mathbf R}) e^{i{\mathbf k}\cdot{\mathbf R}}} $$
2706+
2707+every slot's contribution, with the appropriate phase, is folded back
2708+and reduced into the left-most square matrix, as the arrows in the
2709+figure indicate.
2710+
2711+For periodic systems with large unit cells, k-point sampling is not
2712+really necessary, and the phases involved are all 1 (formally only the
2713+\(\Gamma\) point \({\mathbf k=0}\) is used). In this case the auxiliary supercell
2714+is not strictly necessary: the matrix elements can be reduced on the
2715+fly to the unit-cell square interaction matrix, and other operations
2716+can be similarly folded automatically throughout. It is possible,
2717+however, to request that an auxiliary supercell be used, since the
2718+extra level of bookeeping can be useful for other purposes (e.g. for
2719+COHP analysis of the orbital-pairs contributions to the energy).
2720+
2721+In the program, the auxiliary supercell is handled in several key routines:
2722+
2723+* The need for a supercell is assessed in [[siesta_init]], by checking whether k-points are
2724+ going to be used anywhere in the program.
2725+* The size of the supercell needed is stored in the [[siesta_geom:nsc(variable)]] array
2726+* The supercell offsets for each supercell index are stored in the [[siesta_geom:isc_off(variable)]]
2727+ array.
2728+* Indexing arrays live in [[sparse_matrices]] and are initialized in [[state_init]]
2729+
2730+When an auxiliary supercell is used, the "column" stored in the
2731+`listh` array defined in the [sparsity](|page|/datastructures/2-sparse.html) page ranges
2732+over the long dimension of the rectangular interaction matrix. The
2733+"unit-cell" column to which the folding is done is recorded in the
2734+array `indxuo`. Its contents, however, can be really computed on the
2735+fly, since the column indexes in the rectangular matrix are just
2736+juxtapositions of blocks of size `no_u`.
2737+
2738+The following idiom can be used to go through the arrays:
2739+```fortran
2740+do io = 1, no_u
2741+ do ind = listhptr(io) + 1, lishptr(io) + numh(io)
2742+ is = (listh(ind) - 1) / no_u + 1
2743+ col = mod(listh(ind) - 1, no_u) + 1
2744+ ! or equivalently (found in some parts of the code):
2745+ ! col = indxuo(listh(ind))
2746+ H(io, col) = H(io, col) + H_sparse(ind) * exp(-1j * sum(xijo(:, ind) * k(:)))
2747+ end do
2748+end do
2749+```
2750+
2751+## MD or geometry optimizations
2752+
2753+The auxiliary supercell is a fixed size for any given atomic configuration due to the
2754+constant distances between atoms and neighbouring cell atoms.
2755+In MD or geometry optimization simulations where atoms are being displaced the auxiliary cell
2756+may change. In the following MD refers to _any_ kind of geometry movement, be it actual MD or
2757+geometry relaxations.
2758+
2759+<!---
2760+Consider two atoms currently at a distance \(R>R_\mathrm{max}\)
2761+with \(R_\mathrm{max}\) being the sum of orbital range belonging to the atoms. In a following geometry
2762+iteration the atoms are brought closer to each other such that \(R<R_\mathrm{max}\). This will lead
2763+to an increase in the number of non-zero elements in the sparse matrix.
2764+Concintly for the reverse action where the atoms are moved farther apart one finds a reduction in the
2765+number of non-zero elements.
2766+ --->
2767+
2768+In the following we will use `nsc` to refer to the variable [[siesta_geom:nsc(variable)]].
2769+
2770+Generically one may find that the following list of actions are carried out:
2771+
2772+1. [[siesta_init]]: figure out initial number of supercells and call [[atomlist:superc]]
2773+2. Begin MD iterations
2774+
2775+ 1. [[state_init]]: figure out number of supercells for this geometry configuration
2776+ 2. If any of the supercells has changed we need to copy the old information to the
2777+ new supercell information
2778+ 3. Perform SCF, move atoms and go to 2.1.
2779+
2780+3. End Siesta and analyse
2781+
2782+The step 2.1 and 2.2 requries some further explanation. Siesta keeps a history of SCF converged
2783+density matrices from previous MD steps. When 2.1 is initiated the new initial density matrix is
2784+an extrapolation of these previous density matrices. Since all density matrices are stored using
2785+the [sparsity matrix](|page|/datastructures/2-sparse.html) definitions we need to make a conversion
2786+between different auxiliary supercells. The conversion (in-place) between two different auxiliary
2787+supercells may be found in [[m_handle_sparse:correct_supercell_SpD]].
2788+Additionally, since the number of non-zero elements may also change during the MD cycle one also
2789+needs to remove/add new non-zero elements in the sparse matrix. This is done
2790+in [[m_restruct_SpData2D:restruct_dSpData2D]].
2791+
2792
2793=== added file 'Docs/developer/ford-pages/implementation/index.md'
2794--- Docs/developer/ford-pages/implementation/index.md 1970-01-01 00:00:00 +0000
2795+++ Docs/developer/ford-pages/implementation/index.md 2018-09-12 13:10:27 +0000
2796@@ -0,0 +1,6 @@
2797+title: Specific implementation details
2798+
2799+The details of the implementation that are specific to Siesta may be found here.
2800+
2801+Contrary to the [data structures](|page|/datastructures/index.html), the documentation found
2802+here is not easily transferable to other codes.
2803
2804=== added file 'Docs/developer/ford-pages/index.md'
2805--- Docs/developer/ford-pages/index.md 1970-01-01 00:00:00 +0000
2806+++ Docs/developer/ford-pages/index.md 2018-09-12 13:10:27 +0000
2807@@ -0,0 +1,11 @@
2808+title: Program Overview
2809+
2810+These pages provide some documentation on the internals of the SIESTA program. At present just a few
2811+pages are present, and their integration with the in-code documentation is not yet very complete.
2812+
2813+You can get more information from:
2814+
2815+* [Project webpage](http://www.icmab.es/siesta)
2816+* [Development platform](http://launchpad.net/siesta)
2817+
2818+
2819
2820=== added file 'Docs/developer/ford-siesta.md'
2821--- Docs/developer/ford-siesta.md 1970-01-01 00:00:00 +0000
2822+++ Docs/developer/ford-siesta.md 2018-09-12 13:10:27 +0000
2823@@ -0,0 +1,66 @@
2824+project: SIESTA
2825+version: {!../../version.info!}
2826+author: SIESTA Group
2827+src_dir: ../../Src
2828+output_dir: ./doc-ford-build
2829+page_dir: ./ford-pages
2830+media_dir: ./ford-media
2831+display: public
2832+ private
2833+source: true
2834+search: false
2835+graph: false
2836+exclude_dir: ../../Src/MPI
2837+ ../../Src/fdf
2838+ ../../Src/fdict
2839+ ../../Src/ncdf
2840+ ../../Src/Libs
2841+ ../../Src/Orphans
2842+ ../../Src/SiestaXC
2843+ ../../Src/wxml
2844+ ../../Src/xmlparser
2845+exclude: m_gauss_fermi_17.f90
2846+ m_gauss_fermi_18.f90
2847+ m_gauss_fermi_19.f90
2848+ m_gauss_fermi_20.f90
2849+ m_gauss_fermi_22.f90
2850+ m_gauss_fermi_24.f90
2851+ m_gauss_fermi_26.f90
2852+ m_gauss_fermi_28.f90
2853+ m_gauss_fermi_30.f90
2854+ m_gauss_fermi_inf.f90
2855+ spinorbit.f
2856+project_website: https://www.icmab.es/siesta
2857+summary: ![SIESTA](logo) <br/>
2858+ A first-principles materials simulation code
2859+ using Density Functional Theory.
2860+ {: style="text-align: center" }
2861+preprocess: true
2862+preprocessor: gfortran -E -P
2863+docmark_alt: *
2864+predocmark: >
2865+fpp_extensions: F90
2866+ F
2867+license: gfdl
2868+extra_filetypes: sh #
2869+ inc !
2870+md_extensions: markdown.extensions.toc
2871+
2872+@note
2873+This is an early stage work-in-progress build of developers documentation for SIESTA.
2874+@endnote
2875+
2876+## Project Dashboard
2877+
2878+@todo
2879+Add more topics
2880+@endtodo
2881+
2882+
2883+<!-- useful options -->
2884+<!-------------------->
2885+<!-- graph_maxdepth: 100 -->
2886+<!-- graph_maxnodes: 100 -->
2887+
2888+
2889+<!-- predocmark: > -->
2890
2891=== modified file 'Docs/siesta.tex'
2892--- Docs/siesta.tex 2018-09-04 13:37:24 +0000
2893+++ Docs/siesta.tex 2018-09-12 13:10:27 +0000
2894@@ -4984,6 +4984,27 @@
2895
2896 \end{fdflogicalF}
2897
2898+\begin{fdflogicalT}{DM!Init.Unfold}
2899+ \fdfdepend{DM!UseSaveDM}
2900+ \index{reading saved data!density matrix}
2901+
2902+ When reading the DM from a previous calculation there may be
2903+ inconsistencies in the auxiliary supercell. E.g. if the previous
2904+ calculation did not use an auxiliary supercell and the current
2905+ calculation does (adding $k$-point sampling). \siesta\ will
2906+ automatically \emph{unfold} the $\Gamma$-only DM to the auxiliary
2907+ supercell elements (if \fdftrue).
2908+
2909+ For \fdffalse\ the DM elements are assumed to originate from an
2910+ auxiliary supercell calculation and the sparse elements are not
2911+ unfolded but directly copied.
2912+
2913+ \note Generally this shouldn't not be touched, however, if the
2914+ initial DM is generated using \sisl\cite{sisl} and only on-site DM
2915+ elements are set, this should be set to \fdffalse.
2916+
2917+\end{fdflogicalT}
2918+
2919 \begin{fdflogicalF}{DM!FormattedFiles}
2920 \index{reading saved data!density matrix}
2921
2922@@ -5784,35 +5805,6 @@
2923
2924 \end{fdflogicalF}
2925
2926-\begin{fdfentry}{NaiveAuxiliaryCell}[logical]<\fdfvalue{MD.TypeOfRun}>
2927-
2928- The auxiliary supercell needed can be determined using the atomic positions,
2929- the orbital extent and the lattice parameters. For a fixed geometry
2930- configuration the tightest auxiliary supercell is uniquely defined. However,
2931- when performing MD simulations (or relaxations) the displacement of
2932- certain atoms may result in changes to the required auxiliary
2933- supercell, thus inhibiting re-use of DM information across geometry steps.
2934- When this is option is \fdftrue\ the auxiliary supercell will be computed
2935- with a simpler algorithm using only the orbital extent (fixed for \emph{any}
2936- calculation) and the lattice vectors. The resulting supercell might
2937- be larger than strictly needed, but it will remain mostly constant
2938- during the run (even when the \fdf{MD.VariableCell} option is used,
2939- if the lattice changes are moderate).
2940-
2941- By default this will be \fdffalse\ when performing single-point calculations
2942- (\fdf{MD.TypeOfRun:CG} with \fdf{MD.Steps:1} or below). Otherwise
2943- this will default to \fdftrue.
2944-
2945- \note one may try to set this to \fdffalse\ for better performance,
2946- at the risk of inhibiting the re-use of DM information.
2947-
2948- \note this option may made obsolete in later versions when a
2949- supercell conversion routine is in place.
2950-
2951- \note the name of the option reflects historical usage.
2952-
2953-\end{fdfentry}
2954-
2955
2956
2957 \subsection{Calculation of the electronic structure}
2958
2959=== modified file 'Src/Fstack.T90'
2960--- Src/Fstack.T90 2018-02-01 11:04:12 +0000
2961+++ Src/Fstack.T90 2018-09-12 13:10:27 +0000
2962@@ -22,6 +22,7 @@
2963 character(len=36) :: id = "null_id"
2964 !-------------------------------------
2965 character(len=256) :: name = "(null Fstack_)"
2966+ !> See [[_T_(type)]]
2967 type(_T_), pointer :: val(:) => null()
2968 integer :: size = 0
2969 integer :: nvals = 0
2970
2971=== modified file 'Src/Makefile'
2972--- Src/Makefile 2018-09-04 11:56:15 +0000
2973+++ Src/Makefile 2018-09-12 13:10:27 +0000
2974@@ -831,7 +831,7 @@
2975 m_geom_plane.o: intrinsic_missing.o m_geom_aux.o
2976 m_geom_square.o: intrinsic_missing.o m_geom_aux.o m_geom_plane.o
2977 m_getopts.o: f2kcli.o
2978-m_handle_sparse.o: class_OrbitalDistribution.o class_SpData1D.o
2979+m_handle_sparse.o: class_Data2D.o class_OrbitalDistribution.o class_SpData1D.o
2980 m_handle_sparse.o: class_SpData2D.o class_Sparsity.o geom_helper.o m_iodm.o
2981 m_handle_sparse.o: m_os.o m_region.o m_ts_io.o parallel.o precision.o units.o
2982 m_hartree_add.o: intrinsic_missing.o m_cite.o m_geom_objects.o m_mesh_node.o
2983@@ -921,7 +921,7 @@
2984 m_spin.o: alloc.o parallel.o precision.o sys.o units.o
2985 m_stress.o: precision.o
2986 m_supercell.o: atom_graph.o class_OrbitalDistribution.o class_SpData2D.o
2987-m_supercell.o: intrinsic_missing.o parallel.o parallelsubs.o precision.o
2988+m_supercell.o: parallel.o parallelsubs.o precision.o
2989 m_svd.o: precision.o
2990 m_target_stress.o: parallel.o precision.o sys.o units.o
2991 m_test_io.o: class_SpData2D.o class_Sparsity.o m_iodm.o m_matio.o parallel.o
2992@@ -1091,7 +1091,6 @@
2993 madelung.o: parallel.o precision.o sys.o
2994 matel_registry.o: m_trialorbitalclass.o precision.o radial.o spher_harm.o sys.o
2995 md_out.o: files.o m_energies.o precision.o sys.o units.o
2996-md_utils.o: precision.o
2997 memory.o: alloc.o memoryinfo.o parallel.o precision.o
2998 memory_all.o: rusage.o
2999 memory_snapshot.o: rusage.o
3000@@ -1201,7 +1200,8 @@
3001 save_density_matrix.o: atomlist.o files.o iodm_netcdf.o m_energies.o m_iodm.o
3002 save_density_matrix.o: m_matio.o m_ncdf_siesta.o m_spin.o m_steps.o
3003 save_density_matrix.o: m_ts_global_vars.o m_ts_iodm.o m_ts_options.o
3004-save_density_matrix.o: precision.o siesta_options.o sparse_matrices.o
3005+save_density_matrix.o: precision.o siesta_geom.o siesta_options.o
3006+save_density_matrix.o: sparse_matrices.o
3007 savepsi.o: alloc.o parallel.o parallelsubs.o precision.o
3008 scfconvergence_test.o: atomlist.o ldau.o ldau_specs.o m_convergence.o
3009 scfconvergence_test.o: m_energies.o m_spin.o m_wallclock.o parallel.o
3010@@ -1292,18 +1292,20 @@
3011 state_analysis.o: m_wallclock.o parallel.o remove_intramol_pressure.o
3012 state_analysis.o: siesta_cml.o siesta_geom.o siesta_options.o sparse_matrices.o
3013 state_analysis.o: units.o write_subs.o zmatrix.o
3014-state_init.o: alloc.o atomlist.o class_Data2D.o class_SpData1D.o
3015-state_init.o: class_SpData2D.o class_Sparsity.o create_Sparsity_SC.o
3016-state_init.o: domain_decom.o files.o hsparse.o iodm_netcdf.o iodmhs_netcdf.o
3017-state_init.o: ioxv.o kpoint_grid.o ldau_specs.o m_energies.o m_eo.o m_mixing.o
3018+state_init.o: alloc.o atomlist.o class_Data2D.o
3019+state_init.o: class_Fstack_Pair_Geometry_SpData2D.o
3020+state_init.o: class_Pair_Geometry_SpData2D.o class_SpData1D.o class_SpData2D.o
3021+state_init.o: class_Sparsity.o create_Sparsity_SC.o domain_decom.o files.o
3022+state_init.o: hsparse.o iodm_netcdf.o iodmhs_netcdf.o ioxv.o kpoint_grid.o
3023+state_init.o: ldau_specs.o m_energies.o m_eo.o m_handle_sparse.o m_mixing.o
3024 state_init.o: m_mixing_scf.o m_mpi_utils.o m_ncdf_siesta.o m_new_dm.o m_os.o
3025 state_init.o: m_pivot_methods.o m_rmaxh.o m_sparse.o m_sparsity_handling.o
3026 state_init.o: m_spin.o m_steps.o m_supercell.o m_test_io.o m_ts_charge.o
3027 state_init.o: m_ts_electype.o m_ts_global_vars.o m_ts_io.o m_ts_kpoints.o
3028 state_init.o: m_ts_options.o m_ts_sparse.o m_ts_tri_init.o normalize_dm.o
3029-state_init.o: overlap.o parallel.o proximity_check.o siesta_cml.o
3030-state_init.o: siesta_dicts.o siesta_geom.o siesta_options.o sparse_matrices.o
3031-state_init.o: sys.o units.o write_subs.o zmatrix.o
3032+state_init.o: overlap.o parallel.o proximity_check.o restructSpData2D.o
3033+state_init.o: siesta_cml.o siesta_dicts.o siesta_geom.o siesta_options.o
3034+state_init.o: sparse_matrices.o sys.o units.o write_subs.o zmatrix.o
3035 struct_init.o: alloc.o atmfuncs.o atomlist.o files.o ioxv.o m_exp_coord.o
3036 struct_init.o: m_iostruct.o m_mpi_utils.o m_steps.o parallel.o periodic_table.o
3037 struct_init.o: siesta_cml.o siesta_geom.o siesta_master.o siesta_options.o
3038
3039=== modified file 'Src/Pair.T90'
3040--- Src/Pair.T90 2016-03-01 14:55:57 +0000
3041+++ Src/Pair.T90 2018-09-12 13:10:27 +0000
3042@@ -22,7 +22,9 @@
3043 character(len=36) :: id = "null_id"
3044 !-------------------------------------
3045 character(len=256) :: name = "(null Pair_)"
3046+ !> First component: [[_T1_(type)]]
3047 type(_T1_) :: first
3048+ !> Second component: [[_T2_(type)]]
3049 type(_T2_) :: second
3050 end type Pair_
3051
3052
3053=== modified file 'Src/basic_type.inc'
3054--- Src/basic_type.inc 2015-01-27 14:25:15 +0000
3055+++ Src/basic_type.inc 2018-09-12 13:10:27 +0000
3056@@ -1,6 +1,7 @@
3057 !--------------------------------------------------------------
3058 !
3059-! Basic functionality for reference-counted data structures
3060+!! Basic functionality for reference-counted data structures
3061+!! For some background, see [here](|url|/page/buds.html)
3062 !
3063 ! This file has to be included after the global declarations
3064 ! for extra functionality, just where a "contains" statement
3065
3066=== modified file 'Src/class_SpData1D.T90'
3067--- Src/class_SpData1D.T90 2016-03-01 14:24:48 +0000
3068+++ Src/class_SpData1D.T90 2018-09-12 13:10:27 +0000
3069@@ -26,8 +26,11 @@
3070 character(len=36) :: id = "null_id"
3071 !----------------------
3072 character(len=256) :: name = "null "//STR_TYPE_NAME
3073+ !> See [[Sparsity(type)]]
3074 type(Sparsity) :: sp
3075+ !> See [[VAR_TYPE(type)]]
3076 type(VAR_TYPE) :: a
3077+ !> See [[OrbitalDistribution(type)]]
3078 type(OrbitalDistribution) :: dist
3079 end type TYPE_NAME_
3080
3081
3082=== modified file 'Src/class_SpData2D.T90'
3083--- Src/class_SpData2D.T90 2017-01-24 18:43:31 +0000
3084+++ Src/class_SpData2D.T90 2018-09-12 13:10:27 +0000
3085@@ -26,8 +26,11 @@
3086 character(len=36) :: id = "null_id"
3087 !----------------------
3088 character(len=256) :: name = "null "//STR_TYPE_NAME
3089+ !> See [[Sparsity(type)]]
3090 type(Sparsity) :: sp
3091+ !> See [[VAR_TYPE(type)]]
3092 type(VAR_TYPE) :: a
3093+ !> See [[OrbitalDistribution(type)]]
3094 type(OrbitalDistribution) :: dist
3095 end type TYPE_NAME_
3096
3097
3098=== modified file 'Src/class_Sparsity.F90'
3099--- Src/class_Sparsity.F90 2016-03-01 14:24:48 +0000
3100+++ Src/class_Sparsity.F90 2018-09-12 13:10:27 +0000
3101@@ -7,7 +7,12 @@
3102 ! ---
3103
3104 module class_Sparsity
3105-
3106+ !! Implements a reference-counted derived type ([bud](|url|/page/buds.html))
3107+ !! to hold the [sparsity pattern](|url|/page/sparse.html) of the program's matrices
3108+ !! Objects of this type (notably [[sparse_matrices:sparse_pattern]] can be passed around
3109+ !! and put in container types.
3110+ !! The legacy indexing arrays can be linked to this bud's data [[class_Sparsity:attach]]
3111+ !! when necessary.
3112 use alloc, only: re_alloc, de_alloc
3113
3114 implicit none
3115
3116=== modified file 'Src/extrae_eventllist.F90'
3117--- Src/extrae_eventllist.F90 2014-02-06 12:14:44 +0000
3118+++ Src/extrae_eventllist.F90 2018-09-12 13:10:27 +0000
3119@@ -124,4 +124,4 @@
3120 end subroutine deleteList
3121
3122 end module extrae_eventllist
3123-#endif TRACING
3124+#endif /* TRACING */
3125
3126=== modified file 'Src/extrapolateSpData2D.F90'
3127--- Src/extrapolateSpData2D.F90 2016-12-27 11:08:17 +0000
3128+++ Src/extrapolateSpData2D.F90 2018-09-12 13:10:27 +0000
3129@@ -5,7 +5,7 @@
3130 use class_Sparsity
3131 use class_OrbitalDistribution
3132
3133- use m_restruct_SpData2D, only: restructdSpData2D
3134+ use m_restruct_SpData2D, only: restruct_dSpData2D
3135
3136 type(dSpData2D), intent(in) :: SpM1, SpM2
3137 type(Sparsity), intent(in) :: sp_out
3138@@ -20,8 +20,8 @@
3139 integer :: dim2
3140 real(dp), dimension(:,:), pointer :: a_1, a_2, a_out
3141
3142- call restructdSpData2D(SpM1,sp_out,SpM1_out)
3143- call restructdSpData2D(SpM2,sp_out,SpM2_out)
3144+ call restruct_dSpData2D(SpM1,sp_out,SpM1_out)
3145+ call restruct_dSpData2D(SpM2,sp_out,SpM2_out)
3146
3147 a_1 => val(SpM1_out)
3148 a_2 => val(SpM2_out)
3149
3150=== modified file 'Src/m_handle_sparse.F90'
3151--- Src/m_handle_sparse.F90 2018-07-09 18:29:17 +0000
3152+++ Src/m_handle_sparse.F90 2018-09-12 13:10:27 +0000
3153@@ -7,11 +7,7 @@
3154
3155 use precision, only : dp
3156 use parallel, only : Node, Nodes
3157-
3158 use geom_helper, only : ucorb, iaorb
3159- use class_OrbitalDistribution
3160- use class_Sparsity
3161- use class_dSpData2D
3162
3163 implicit none
3164
3165@@ -19,13 +15,32 @@
3166
3167 public :: bulk_expand
3168 public :: expand_spd2spd_2D
3169+ public :: fold_auxiliary_supercell_SpD
3170+ public :: unfold_noauxiliary_supercell_SpD
3171+ public :: correct_supercell_SpD
3172 public :: reduce_spin_size
3173
3174+ interface fold_auxiliary_supercell_SpD
3175+ module procedure fold_auxiliary_supercell_Sp2D
3176+ end interface fold_auxiliary_supercell_SpD
3177+
3178+ interface unfold_noauxiliary_supercell_SpD
3179+ module procedure unfold_noauxiliary_supercell_Sp2D
3180+ end interface unfold_noauxiliary_supercell_SpD
3181+
3182+ interface correct_supercell_SpD
3183+ module procedure correct_supercell_Sp1D
3184+ module procedure correct_supercell_Sp2D
3185+ end interface correct_supercell_SpD
3186+
3187 contains
3188
3189 subroutine bulk_expand(na_u,xa,lasto,cell,nsc,isc_off,DM_2D)
3190
3191 use fdf
3192+ use class_OrbitalDistribution
3193+ use class_Sparsity
3194+ use class_dSpData2D
3195 use class_dSpData1D
3196 use m_os, only: file_exist
3197 use units, only: Ang
3198@@ -47,14 +62,14 @@
3199 type(dSpData2D) :: fDM_2D
3200 real(dp) :: fcell(3,3), fkdispl(3), fEf, fQtot, fTemp
3201 real(dp), pointer :: fxa(:,:) => null()
3202- integer :: fnsc(3), fna_u, fno_u, fnspin, fkscell(3,3), at, fn_s
3203- integer :: Tile(3), Reps(3)
3204+ integer :: fnsc(3), fna_u, fno_u, fnspin, fkcell(3,3), at, fn_s
3205+ integer :: Tile(3), Reps(3), fnsc_DM(3)
3206 real(dp) :: def_xa_EPS, xa_EPS
3207
3208 integer, pointer :: flasto(:) => null(), fisc_off(:,:) => null()
3209
3210 integer :: allowed(na_u), itmp, s_na, c_na
3211- character(len=400) :: HSfile, DMfile, ln
3212+ character(len=256) :: HSfile, DMfile, ln
3213 logical :: d_log1, d_log2, d_log3
3214 type(block_fdf) :: bfdf
3215 type(parsed_line), pointer :: pline => null()
3216@@ -146,7 +161,7 @@
3217 call ts_read_TSHS(HSfile, &
3218 d_log1, d_log2, d_log3, &
3219 fcell, fnsc, fna_u, fno_u, fnspin, &
3220- fkscell, fkdispl, &
3221+ fkcell, fkdispl, &
3222 fxa, flasto, &
3223 fsp, fDM_2D, tmp_1D, fisc_off, &
3224 fEf, fQtot, fTemp, &
3225@@ -174,7 +189,8 @@
3226 ! exactly the same, except that TSDE has an extra EDM and Ef
3227 ! at the end, we do not care about that! :)
3228 ! read in DM file
3229- call read_DM( DMfile, fake_dit, fDM_2D, d_log1, Bcast=.true.)
3230+ call read_DM( DMfile, fake_dit, fnsc_DM, fDM_2D, d_log1, Bcast=.true.)
3231+ if ( fnsc_DM(1) == 0 ) fnsc_DM = fnsc
3232 if ( size(fDM_2D, 2) /= fnspin ) then
3233 call die('bulk_expand: DM and TSHS does not have the same spin')
3234 end if
3235@@ -221,6 +237,9 @@
3236 print, allowed_a)
3237
3238 use units, only: Ang
3239+ use class_OrbitalDistribution
3240+ use class_Sparsity
3241+ use class_dSpData2D
3242 #ifdef MPI
3243 use mpi_siesta
3244 #endif
3245@@ -466,8 +485,795 @@
3246
3247 end subroutine expand_spd2spd_2D
3248
3249+#ifdef SIESTA__NOT_USED
3250+
3251+ ! Copy one super-cell sparse pattern to another super-cell sparse
3252+ ! pattern. This will copy [in] to [out].
3253+ ! The data D2_in contains one sparsity pattern with nsc_in supercells.
3254+ ! See sparse_matrices.F90 for details regarding the sparsity pattern layout.
3255+ ! The data D2_out contains the "new" sparsity pattern we want to retain.
3256+ ! I.e. if the number of supercells change, we only retain the equivalent supercell
3257+ ! elements. And if the number of non-zero elements change we retain only the
3258+ ! new ones (discarding the older ones).
3259+ subroutine copy_supercell_Sp2D(d2_out, nsc_out, d2_in, nsc_in)
3260+
3261+ use class_Sparsity
3262+ use class_dSpData2D
3263+#ifdef MPI
3264+ use mpi_siesta
3265+#endif
3266+
3267+ ! output D2 sparse pattern
3268+ type(dSpData2D), intent(inout) :: d2_out
3269+ ! output D2 number of supercells
3270+ integer, intent(in) :: nsc_out(3)
3271+ ! input D2 sparse pattern
3272+ type(dSpData2D), intent(inout) :: d2_in
3273+ ! input D2 number of supercells
3274+ integer, intent(in) :: nsc_in(3)
3275+
3276+ ! We are ready to check and copy the sparsity pattern...
3277+ type(Sparsity), pointer :: sp_i, sp_o
3278+
3279+ ! Local variables
3280+ integer :: no_u, no_l
3281+ integer :: io, i, i_ind, o_ind, isc(3)
3282+ integer :: i_is, o_is, o_hsc(3)
3283+ integer :: discarded(2), dim_min
3284+
3285+ ! arrays for the sparsity patterns
3286+ integer, pointer :: o_ptr(:), o_ncol(:), o_col(:)
3287+ integer, pointer :: i_ptr(:), i_ncol(:), i_col(:)
3288+ real(dp), pointer :: a_o(:,:), a_i(:,:)
3289+ integer, allocatable :: o_isc(:,:,:), i_isc(:,:)
3290+ integer, allocatable :: out_index(:)
3291+
3292+ if ( all(nsc_out == nsc_in) ) return
3293+
3294+ sp_i => spar(d2_in)
3295+ a_i => val(d2_in)
3296+ sp_o => spar(d2_out)
3297+ a_o => val(d2_out)
3298+
3299+ call attach(sp_i,n_col=i_ncol, list_ptr=i_ptr, list_col=i_col, &
3300+ nrows=no_l, nrows_g=no_u)
3301+ call attach(sp_o,n_col=o_ncol, list_ptr=o_ptr, list_col=o_col, &
3302+ nrows=io, nrows_g=i)
3303+
3304+ dim_min = min(size(a_i,2), size(a_o,2))
3305+ if ( no_u /= i ) &
3306+ call die('copy_supercell_sp_d2: error in number of global orbitals.')
3307+ if ( no_l /= io ) &
3308+ call die('copy_supercell_sp_d2: error in number of local orbitals.')
3309+
3310+ ! Now create the conversion tables
3311+ call generate_isc(nsc_out, o_isc)
3312+ call generate_linear_isc(nsc_in, i_isc)
3313+
3314+ ! Allocate look-up table
3315+ allocate(out_index(product(nsc_out)*no_u))
3316+ ! Set all elements to zero
3317+ out_index(:) = 0
3318+
3319+ ! Count the number of discarded non-zero elements
3320+ ! (1) is the supercell discarded (for missing supercells)
3321+ ! (2) is because the orbital interaction does not exist
3322+ discarded = 0
3323+
3324+ ! We need to check whether in-put SC is too large
3325+ o_hsc = nsc_out / 2
3326+
3327+ ! Since we are going to copy, then we have to set it to zero...
3328+ a_o(:,:) = 0._dp
3329+
3330+ do io = 1, no_l
3331+
3332+ ! copy output lookup table to not search every element
3333+ do i = 1, o_ncol(io)
3334+ out_index(o_col(o_ptr(io)+i)) = o_ptr(io) + i
3335+ end do
3336+
3337+ ! Now we can do the copy...
3338+ inner_columns: do i = 1, i_ncol(io)
3339+ i_ind = i_ptr(io) + i
3340+ i_is = (i_col(i_ind)-1) / no_u
3341+
3342+ ! Get isc
3343+ isc = i_isc(:, i_is)
3344+
3345+ ! Check that the out supercell exists
3346+ if ( any(abs(isc) > o_hsc) ) then
3347+ discarded(1) = discarded(1) + 1
3348+ cycle inner_columns
3349+ end if
3350+
3351+ ! We know the supercell exists, lets see if the orbital connection
3352+ ! exists.
3353+ o_is = o_isc(isc(1),isc(2),isc(3))
3354+
3355+ ! Transfer the orbital index to the correct supercell
3356+ o_ind = out_index(o_is * no_u + ucorb(i_col(i_ind), no_u))
3357+
3358+ if ( o_ind == 0 ) then
3359+ ! The orbital interaction does not exist
3360+ discarded(2) = discarded(2) + 1
3361+ else
3362+ a_o(o_ind,1:dim_min) = a_i(i_ind,1:dim_min)
3363+ end if
3364+
3365+ end do inner_columns
3366+
3367+ ! restore lookup table
3368+ do i = 1, o_ncol(io)
3369+ out_index(o_col(o_ptr(io)+i)) = 0
3370+ end do
3371+
3372+ end do
3373+
3374+ deallocate(o_isc, i_isc, out_index)
3375+
3376+ end subroutine copy_supercell_Sp2D
3377+
3378+ subroutine copy_supercell_Sp1D(d1_out, nsc_out, d1_in, nsc_in)
3379+
3380+ use class_Sparsity
3381+ use class_dSpData1D
3382+#ifdef MPI
3383+ use mpi_siesta
3384+#endif
3385+
3386+ ! output D1 sparse pattern
3387+ type(dSpData1D), intent(inout) :: d1_out
3388+ ! output D1 number of supercells
3389+ integer, intent(in) :: nsc_out(3)
3390+ ! input D1 sparse pattern
3391+ type(dSpData1D), intent(inout) :: d1_in
3392+ ! input D1 number of supercells
3393+ integer, intent(in) :: nsc_in(3)
3394+
3395+ ! We are ready to check and copy the sparsity pattern...
3396+ type(Sparsity), pointer :: sp_i, sp_o
3397+
3398+ ! Local variables
3399+ integer :: no_u, no_l
3400+ integer :: io, i, i_ind, o_ind, isc(3)
3401+ integer :: i_is, o_is, o_hsc(3)
3402+ integer :: discarded(2)
3403+
3404+ ! arrays for the sparsity patterns
3405+ integer, pointer :: o_ptr(:), o_ncol(:), o_col(:)
3406+ integer, pointer :: i_ptr(:), i_ncol(:), i_col(:)
3407+ real(dp), pointer :: a_o(:), a_i(:)
3408+ integer, allocatable :: o_isc(:,:,:), i_isc(:,:)
3409+ integer, allocatable :: out_index(:)
3410+
3411+ if ( all(nsc_out == nsc_in) ) return
3412+
3413+ sp_i => spar(d1_in)
3414+ a_i => val(d1_in)
3415+ sp_o => spar(d1_out)
3416+ a_o => val(d1_out)
3417+
3418+ call attach(sp_i,n_col=i_ncol, list_ptr=i_ptr, list_col=i_col, &
3419+ nrows=no_l, nrows_g=no_u)
3420+ call attach(sp_o,n_col=o_ncol, list_ptr=o_ptr, list_col=o_col, &
3421+ nrows=io, nrows_g=i)
3422+
3423+ if ( no_u /= i ) &
3424+ call die('copy_supercell_sp_d2: error in number of global orbitals.')
3425+ if ( no_l /= io ) &
3426+ call die('copy_supercell_sp_d2: error in number of local orbitals.')
3427+
3428+ ! Now create the conversion tables
3429+ call generate_isc(nsc_out, o_isc)
3430+ call generate_linear_isc(nsc_in, i_isc)
3431+
3432+ ! Allocate look-up table
3433+ allocate(out_index(product(nsc_out)*no_u))
3434+ ! Set all elements to zero
3435+ out_index(:) = 0
3436+
3437+ ! Count the number of discarded non-zero elements
3438+ ! (1) is the supercell discarded (for missing supercells)
3439+ ! (2) is because the orbital interaction does not exist
3440+ discarded = 0
3441+
3442+ ! We need to check whether in-put SC is too large
3443+ o_hsc = nsc_out / 2
3444+
3445+ ! Since we are going to copy, then we have to set it to zero...
3446+ a_o(:) = 0._dp
3447+
3448+ do io = 1, no_l
3449+
3450+ ! copy output lookup table to not search every element
3451+ do i = 1, o_ncol(io)
3452+ out_index(o_col(o_ptr(io)+i)) = o_ptr(io) + i
3453+ end do
3454+
3455+ ! Now we can do the copy...
3456+ inner_columns: do i = 1, i_ncol(io)
3457+ i_ind = i_ptr(io) + i
3458+ i_is = (i_col(i_ind)-1) / no_u
3459+
3460+ ! Get isc
3461+ isc = i_isc(:, i_is)
3462+
3463+ ! Check that the out supercell exists
3464+ if ( any(abs(isc) > o_hsc) ) then
3465+ discarded(1) = discarded(1) + 1
3466+ cycle inner_columns
3467+ end if
3468+
3469+ ! We know the supercell exists, lets see if the orbital connection
3470+ ! exists.
3471+ o_is = o_isc(isc(1),isc(2),isc(3))
3472+
3473+ ! Transfer the orbital index to the correct supercell
3474+ o_ind = out_index(o_is * no_u + ucorb(i_col(i_ind), no_u))
3475+
3476+ if ( o_ind == 0 ) then
3477+ ! The orbital interaction does not exist
3478+ discarded(2) = discarded(2) + 1
3479+ else
3480+ a_o(o_ind) = a_i(i_ind)
3481+ end if
3482+
3483+ end do inner_columns
3484+
3485+ ! restore lookup table
3486+ do i = 1, o_ncol(io)
3487+ out_index(o_col(o_ptr(io)+i)) = 0
3488+ end do
3489+
3490+ end do
3491+
3492+ deallocate(o_isc, i_isc, out_index)
3493+
3494+ end subroutine copy_supercell_Sp1D
3495+
3496+#endif
3497+
3498+
3499+ !> Expand an nsc == 1 DM to an nsc_ == * supercell.
3500+ !>
3501+ !> In cases where the DM is constructed from all(nsc == 1) we know that
3502+ !> all elements in the supercell have the same value as in the folded DM.
3503+ !>
3504+ !> @note
3505+ !> This will actually work even in the presence of degenerate folding
3506+ !> (S(io,io)>1). This can only appear if a
3507+ !> supercell is not used, so k-points are not used, so no phases are
3508+ !> needed. The DM elements in the base cell are just the products of
3509+ !> appropriate wavefunction coefficients, and they can be replicated
3510+ !> to the rest of the supercell. Note that it is S (or H) that is folded,
3511+ !> not the DM.
3512+ !> @endnote
3513+ !>
3514+
3515+ subroutine unfold_noauxiliary_supercell_Sp2D(sp_sc, D2)
3516+
3517+ use class_Sparsity
3518+ use class_OrbitalDistribution
3519+ use class_dSpData2D
3520+ use class_dData2D
3521+#ifdef MPI
3522+ use mpi_siesta
3523+#endif
3524+
3525+ !> Input supercell sparsity pattern (this will contain periodic connections)
3526+ type(Sparsity), intent(inout) :: sp_sc
3527+ !> Input/Output 2D data with associated non-supercell sparse pattern. Upon exit
3528+ !> this contains as many non-zero elements as in sp_sc with expanded elements.
3529+ type(dSpData2D), intent(inout) :: D2
3530+
3531+ ! Local variables
3532+ type(OrbitalDistribution) :: dit
3533+ type(Sparsity), pointer :: sp
3534+ type(dData2D) :: A2D
3535+
3536+ real(dp), pointer :: A2(:,:), A2_sc(:,:)
3537+ integer :: no_u, no_l
3538+ integer :: io, jo, ind, scind
3539+
3540+ ! arrays for the sparsity patterns
3541+ integer, pointer :: ptr(:), ncol(:), col(:)
3542+ integer, pointer :: scptr(:), scncol(:), sccol(:)
3543+
3544+ ! This will silently assume same sizes in the sparse patterns
3545+
3546+ sp => spar(D2)
3547+ A2 => val(D2)
3548+ call attach(sp,n_col=ncol, list_ptr=ptr, list_col=col, &
3549+ nrows=no_l, nrows_g=no_u)
3550+
3551+ ! Supercell sparsity pattern
3552+ call attach(sp_sc, n_col=scncol, list_ptr=scptr, list_col=sccol, &
3553+ nnzs=io)
3554+
3555+ ! Create array that hosts the new data
3556+ ind = size(A2, dim=2)
3557+ call newdData2D(A2D, io, ind,"(unfolded DM vals)")
3558+ A2_sc => val(A2D)
3559+ A2_sc(:,:) = 0._dp
3560+
3561+ do io = 1, no_l
3562+
3563+ ! Loop supercell sparse pattern
3564+ do scind = scptr(io) + 1, scptr(io) + scncol(io)
3565+
3566+ jo = ucorb(sccol(scind), no_u)
3567+
3568+ do ind = ptr(io) + 1, ptr(io) + ncol(io)
3569+ if ( col(ind) == jo ) then
3570+ A2_sc(scind, :) = A2(ind, :)
3571+ exit
3572+ end if
3573+ end do
3574+
3575+ end do
3576+ end do
3577+
3578+ dit = dist(D2)
3579+ call newdSpData2D(sp_sc, A2D, dit, D2, name="Unfolded DM")
3580+
3581+ call delete(dit)
3582+ call delete(A2D)
3583+
3584+ end subroutine unfold_noauxiliary_supercell_Sp2D
3585+
3586+ !> Fold an nsc > 1 DM to an nsc_ == 1 supercell.
3587+ !>
3588+ !> In cases where the DM is constructed from any(nsc > 1), some orbital
3589+ !> connections are kept in image cells, and not in the unit cell that
3590+ !> is going to be retained, so we need to copy them. This is a special
3591+ !> sub-case of the "new supercell is smaller than the old one" case
3592+ !> treated more coarsely in routine [[correct_supercell_SpD]]
3593+ !> The name `fold` is not completely appropriate.
3594+
3595+ !> In more detail: the elements which in A2 are already in the
3596+ !> leftmost square of the rectangular interaction matrix should be
3597+ !> retained, even if for some reason they are not the first in the
3598+ !> series of elements of A2 with that ucorb jo.
3599+
3600+ !> In the absence of other information, the criterion 'closer is
3601+ !> more important' is likely the right one, rather than averages or
3602+ !> tests for size of the DM element. If the old calculation was
3603+ !> simply a Gamma-point-with-auxcell one, all this is irrelevant, as
3604+ !> *all* the DM entries in A2 for a given jo are identical, but if
3605+ !> it came from a real k-point calculation, phases might be at work
3606+ !> and we do not know how. So the copying code below gives preference to
3607+ !> col(ind) == jo elements, and, if not present, to other images.
3608+
3609+ subroutine fold_auxiliary_supercell_Sp2D(sp_uc, D2)
3610+
3611+ use class_Sparsity
3612+ use class_OrbitalDistribution
3613+ use class_dSpData2D
3614+ use class_dData2D
3615+#ifdef MPI
3616+ use mpi_siesta
3617+#endif
3618+
3619+ !> Input sparsity pattern (no auxiliary supercell)
3620+ type(Sparsity), intent(inout) :: sp_uc
3621+ !> Input/Output 2D data with associated supercell sparse pattern, upon exit
3622+ !> this contains as many non-zero elements as in sp_uc with expanded elements.
3623+ type(dSpData2D), intent(inout) :: D2
3624+
3625+ ! Local variables
3626+ type(OrbitalDistribution) :: dit
3627+ type(Sparsity), pointer :: sp
3628+ type(dData2D) :: A2D
3629+
3630+ real(dp), pointer :: A2(:,:), A2_uc(:,:)
3631+ integer :: no_u, no_l
3632+ integer :: io, jo, ind, ucind
3633+
3634+ ! arrays for the sparsity patterns
3635+ integer, pointer :: ptr(:), ncol(:), col(:)
3636+ integer, pointer :: ucptr(:), ucncol(:), uccol(:)
3637+
3638+ ! This will silently assume same sizes in the sparse patterns
3639+
3640+ sp => spar(D2)
3641+ A2 => val(D2)
3642+ call attach(sp,n_col=ncol, list_ptr=ptr, list_col=col, &
3643+ nrows=no_l, nrows_g=no_u)
3644+
3645+ ! Primary unit-cell sparsity pattern
3646+ call attach(sp_uc, n_col=ucncol, list_ptr=ucptr, list_col=uccol, &
3647+ nnzs=io)
3648+
3649+ ! Create array that hosts the new data
3650+ ind = size(A2, dim=2)
3651+ call newdData2D(A2D, io, ind,"(fold 2D)")
3652+ A2_uc => val(A2D)
3653+ A2_uc(:,:) = 0._dp
3654+
3655+ ! Copy relevant elements. Do not add. Remember that the DM
3656+ ! is not folded, only H and S are.
3657+
3658+ do io = 1, no_l
3659+
3660+ ! Loop unitcell sparse pattern
3661+ do ucind = ucptr(io) + 1, ucptr(io) + ucncol(io)
3662+
3663+ ! Strictly not needed, but retained for consistency!
3664+ jo = ucorb(uccol(ucind), no_u)
3665+
3666+ do ind = ptr(io) + 1, ptr(io) + ncol(io)
3667+
3668+ ! We look for A2 elements with ucorb(col) == jo, giving
3669+ ! preference to those coming from 000 interactions
3670+
3671+ if ( col(ind) == jo ) then
3672+
3673+ A2_uc(ucind, :) = A2(ind, :)
3674+ ! and we are done for this io,jo combination,
3675+ ! as this 000 element has preference
3676+ exit
3677+
3678+ else if ( ucorb(col(ind), no_u) == jo ) then
3679+
3680+ ! tentatively copy
3681+ A2_uc(ucind, :) = A2(ind, :)
3682+ ! but we keep looking for more elements for this io,jo combination, in
3683+ ! case one satisfying the first test appears.
3684+
3685+ cycle
3686+
3687+ ! Other possibilities such as storing averages of all
3688+ ! elements with the same ucorb jo, or the element with
3689+ ! maximum magnitude, are probably not worth it, lacking
3690+ ! more information. Perhaps some statistical analysis
3691+ ! might help, but it would be overkill.
3692+
3693+ end if
3694+ end do
3695+
3696+ end do
3697+ end do
3698+
3699+ dit = dist(D2)
3700+ call newdSpData2D(sp_uc, A2D, dit, D2, name="Folded Sp2D")
3701+
3702+ call delete(dit)
3703+ call delete(A2D)
3704+
3705+ end subroutine fold_auxiliary_supercell_Sp2D
3706+
3707+ !> Correct a sparse pattern (in-place) from an old NSC to a new NSC.
3708+ !>
3709+ !> Here we take a sparse data pattern and change all column indices
3710+ !> so that they are appropriate for the new supercell.
3711+ !> The supercell sparse matrix layout is described in sparse_matrices.F90
3712+ !> Recall that each column value also holds implicitly the image cell index,
3713+ !> using an offset `image_index*no_u`.
3714+ !>
3715+ !> If the original supercell is larger than the new one, the elements
3716+ !> associated to image cells that no longer exist will be set to zero,
3717+ !> and their column indexes set to something beyond the acceptable values.
3718+ !> The elements in the retained image cells have their column indexes recomputed,
3719+ !> as the image cell indexes depend on the size of the supercell.
3720+ !>
3721+ !> If nsc_old == nsc_new, nothing is done.
3722+ !>
3723+ !> @note
3724+ !> The sparse pattern and the nsc multipliers live independently. This could
3725+ !> lead to errors. A possible improvement is to have nsc as part of the sparse-pattern
3726+ !> information.
3727+ !> @endnote
3728+ !>
3729+ !> @note
3730+ !> After a call to this routine, we still need to purge from the sparse index arrays
3731+ !> those elements of D2 which are no longer needed.
3732+ !> @endnote
3733+ subroutine correct_supercell_Sp2D(nsc_old, D2, nsc_new)
3734+
3735+ use class_Sparsity
3736+ use class_dSpData2D
3737+#ifdef MPI
3738+ use mpi_siesta
3739+#endif
3740+
3741+ !> A sparse-matrix object, containing a sparse pattern
3742+ type(dSpData2D), intent(inout) :: D2
3743+ !> Auxiliary supercell multipliers for D2, typically read
3744+ !> from file at the same time as other D2 information
3745+ !> (see, for example, the new DM file format)
3746+ integer, intent(in) :: nsc_old(3)
3747+ !> New auxiliary supercell multipliers for D2
3748+ integer, intent(in) :: nsc_new(3)
3749+
3750+ ! Local variables
3751+ type(Sparsity), pointer :: sp
3752+ integer :: no_u, no_l
3753+ integer :: io, ind, isc(3)
3754+ integer :: old_n_s, new_outside
3755+ integer :: old_is, new_is, new_hsc(3)
3756+
3757+ ! arrays for the sparsity patterns
3758+ integer, pointer :: ptr(:), ncol(:), col(:)
3759+ integer, allocatable :: old_isc(:,:), new_isc(:,:,:)
3760+ real(dp), pointer :: a2(:,:)
3761+
3762+ if ( all(nsc_old == nsc_new) ) return
3763+
3764+ sp => spar(D2)
3765+ call attach(sp,n_col=ncol, list_ptr=ptr, list_col=col, &
3766+ nrows=no_l, nrows_g=no_u)
3767+
3768+ ! Required to set removed elements to 0
3769+ A2 => val(D2)
3770+
3771+ !> Calls [[generate_linear_isc]] to create a table (naming confusing!).
3772+ !> The linear isc is a list of index offsets (equivalent to isc_off)
3773+ !> The order of indices may be found in [[atomlist:superx]] (or in the ORB_INDX output file)
3774+ !>
3775+ call generate_linear_isc(nsc_old, old_isc)
3776+ !> Create the isc_off in supercell format such that:
3777+ !> new_isc(1, 1, 1) yields the index for the [1, 1, 1] supercell.
3778+ !>
3779+ !> Calls [[generate_isc]] to create
3780+ !> *another* table with the same naming convention
3781+ call generate_isc(nsc_new, new_isc)
3782+
3783+ ! Calculate total number of image cells in old supercell
3784+ old_n_s = product(nsc_old)
3785+ ! Offset to mark un-needed elements
3786+ new_outside = product(nsc_new) * no_u
3787+
3788+ ! Maximum cell image extents on either side.
3789+ ! This assumes that nsc(:) are all odd. For example
3790+ ! (5,3,5) ==> (2,1,2)
3791+ new_hsc = nsc_new / 2
3792+
3793+ !> Calls [[intrinsic_missing:modp]] (renamed to `ucorb`)
3794+ !> to map the column index to the unit cell
3795+ do io = 1, no_l
3796+
3797+ inner_columns: do ind = ptr(io) + 1, ptr(io) + ncol(io)
3798+ ! Calculate the old image cell index
3799+ old_is = (col(ind)-1) / no_u
3800+
3801+ ! This is just sanity checking, in case the column indexes are obviously wrong
3802+ if ( old_is >= old_n_s ) then ! it should be removed
3803+
3804+ ! It is better to stop the program
3805+ call die("Mismatch in sparsity pattern and nsc values")
3806+
3807+ ! Set it to zero
3808+ A2(ind, :) = 0._dp
3809+ ! Also set the column index to a position outside the new sparse pattern
3810+ col(ind) = ucorb(col(ind), no_u) + new_outside
3811+ cycle inner_columns
3812+ end if
3813+
3814+ ! The image cell coordinates
3815+ isc(:) = old_isc(:, old_is)
3816+
3817+ ! Check that the new supercell has room for this cell image
3818+ if ( any(abs(isc) > new_hsc) ) then
3819+ ! Set it to zero
3820+ A2(ind, :) = 0._dp
3821+ ! Also set the column index to a position outside the new sparse pattern
3822+ ! since it isn't defined in the old sparse pattern, it can't be defined in
3823+ ! the new one.
3824+ col(ind) = ucorb(col(ind), no_u) + new_outside
3825+
3826+ else
3827+
3828+ ! We know the image cell exists, so convert the column
3829+ ! orbital index to the correct image cell using the new offset.
3830+ new_is = new_isc(isc(1),isc(2),isc(3))
3831+ col(ind) = ucorb(col(ind), no_u) + new_is * no_u
3832+ endif
3833+
3834+ end do inner_columns
3835+
3836+ end do
3837+
3838+ deallocate(old_isc, new_isc)
3839+
3840+ end subroutine correct_supercell_Sp2D
3841+
3842+ subroutine correct_supercell_Sp1D(nsc_old, D1, nsc_new)
3843+
3844+ use class_Sparsity
3845+ use class_dSpData1D
3846+#ifdef MPI
3847+ use mpi_siesta
3848+#endif
3849+
3850+ type(dSpData1D), intent(inout) :: D1
3851+ integer, intent(in) :: nsc_old(3)
3852+ integer, intent(in) :: nsc_new(3)
3853+
3854+ ! Local variables
3855+ type(Sparsity), pointer :: sp
3856+ integer :: no_u, no_l
3857+ integer :: io, ind, isc(3)
3858+ integer :: old_n_s, new_outside
3859+ integer :: old_is, new_is, new_hsc(3)
3860+
3861+ ! arrays for the sparsity patterns
3862+ integer, pointer :: ptr(:), ncol(:), col(:)
3863+ integer, allocatable :: old_isc(:,:), new_isc(:,:,:)
3864+ real(dp), pointer :: A1(:)
3865+
3866+ if ( all(nsc_old == nsc_new) ) return
3867+
3868+ sp => spar(D1)
3869+ call attach(sp,n_col=ncol, list_ptr=ptr, list_col=col, &
3870+ nrows=no_l, nrows_g=no_u)
3871+
3872+ ! Required to set removed elements to 0
3873+ A1 => val(D1)
3874+
3875+ ! Now create the conversion tables
3876+ !> The linear isc is a list of index offsets (equivalent to isc_off)
3877+ !> The order of indices may be found in [[atomlist:superx]] (or in the ORB_INDX output file)
3878+ call generate_linear_isc(nsc_old, old_isc)
3879+ !> Create the isc_off in supercell format such that:
3880+ !> new_isc(1, 1, 1) yields the index for the [1, 1, 1] supercell.
3881+ call generate_isc(nsc_new, new_isc)
3882+
3883+ ! Calculate total number of supercells
3884+ old_n_s = product(nsc_old)
3885+ new_outside = product(nsc_new) * no_u
3886+
3887+ ! We need to check whether in-put SC is too large
3888+ new_hsc = nsc_new / 2
3889+ do io = 1, no_l
3890+
3891+ ! Now we can do the copy...
3892+ inner_columns: do ind = ptr(io) + 1, ptr(io) + ncol(io)
3893+ !> Calculate the old supercell index (supercell offset is old_isc(:, old_is))
3894+ old_is = (col(ind)-1) / no_u
3895+ isc = old_isc(:, old_is)
3896+
3897+ ! Simple error handling in case a user has supplied a too large column index
3898+ if ( old_is >= old_n_s ) then ! it should be removed
3899+ ! Set it to zero
3900+ A1(ind) = 0._dp
3901+ ! Also set the column index to a position outside the new sparse pattern
3902+ ! since it isn't defined in the old sparse pattern, it can't be defined in
3903+ ! the new one.
3904+ col(ind) = ucorb(col(ind), no_u) + new_outside
3905+ cycle inner_columns
3906+ end if
3907+
3908+ ! Check that the out supercell exists
3909+ if ( any(abs(isc) > new_hsc) ) then
3910+ ! Set it to zero
3911+ A1(ind) = 0._dp
3912+ ! Also set the column index to a position higher
3913+ col(ind) = ucorb(col(ind), no_u) + new_outside
3914+ cycle inner_columns
3915+ end if
3916+
3917+ ! We know the supercell exists, so convert column
3918+ new_is = new_isc(isc(1),isc(2),isc(3))
3919+
3920+ ! Transfer the orbital index to the correct supercell
3921+ col(ind) = ucorb(col(ind), no_u) + new_is * no_u
3922+
3923+ end do inner_columns
3924+
3925+ end do
3926+
3927+ deallocate(old_isc, new_isc)
3928+
3929+ end subroutine correct_supercell_Sp1D
3930+
3931+ !> Generate image cell offsets in a supercell
3932+ !>
3933+ !> The given supercell offsets for a given supercell is:
3934+ !>
3935+ !>```fortran
3936+ !> isc(:, is)
3937+ !>```
3938+ !>
3939+ !> where `is` is the supercell index `(list_col(ind) - 1)/no_u`.
3940+ !> and the first dimension is the cell direction (x,y,z)
3941+ !> The order is equivalent to those generated in [[atomlist::superx]].
3942+ !
3943+ subroutine generate_linear_isc(nsc, isc)
3944+ integer, intent(in) :: nsc(3)
3945+ integer, allocatable :: isc(:,:)
3946+
3947+ integer :: x, y, z, i
3948+ integer :: nx, ny, nz
3949+
3950+ allocate(isc(3,0:product(nsc)-1))
3951+
3952+ !> Calls [[linear2pm]] to set the correct ordering
3953+ i = 0
3954+ do z = 0, nsc(3) - 1
3955+ nz = linear2pm(z, nsc(3))
3956+ do y = 0, nsc(2) - 1
3957+ ny = linear2pm(y, nsc(2))
3958+ do x = 0, nsc(1) - 1
3959+ nx = linear2pm(x, nsc(1))
3960+ isc(1,i) = nx
3961+ isc(2,i) = ny
3962+ isc(3,i) = nz
3963+ i = i + 1
3964+ end do
3965+ end do
3966+ end do
3967+
3968+ end subroutine generate_linear_isc
3969+
3970+ !> Generate a supercell index array comprising of 3 dimensions of size `nx`, `ny` and `nz`
3971+ !>
3972+ !> To obtain the index of a given supercell simply do:
3973+ !>
3974+ !>```fortran
3975+ !> isc(ix, iy, iz)
3976+ !>```
3977+ !>
3978+ !> where `ix`, `iy` and `iz` are the supercells for the individiual
3979+ !> lattice vector directions. The order of supercells is equivalent to
3980+ !> those generated in [[atomlist:superx]].
3981+ !
3982+ subroutine generate_isc(nsc, isc)
3983+ integer, intent(in) :: nsc(3)
3984+ integer, allocatable :: isc(:,:,:)
3985+
3986+ integer :: x, y, z, i
3987+ integer :: nx, ny, nz
3988+ integer :: hsc(3)
3989+
3990+ ! nsc % 2 == 1, nsc / 2 % 2 == 0
3991+ hsc = nsc / 2
3992+
3993+ allocate(isc(-hsc(1):hsc(1),-hsc(2):hsc(2),-hsc(3):hsc(3)))
3994+
3995+ !> Calls [[linear2pm]] to get the correct ordering
3996+ i = 0
3997+ do z = 0, nsc(3) - 1
3998+ nz = linear2pm(z, nsc(3))
3999+ do y = 0, nsc(2) - 1
4000+ ny = linear2pm(y, nsc(2))
4001+ do x = 0, nsc(1) - 1
4002+ nx = linear2pm(x, nsc(1))
4003+ isc(nx,ny,nz) = i
4004+ i = i + 1
4005+ end do
4006+ end do
4007+ end do
4008+
4009+ end subroutine generate_isc
4010+
4011+ !> Routine to reorder the [0,nsc-1] range of cell images
4012+ !> so that it follows the [[atomlist:superx]] convention
4013+ !> Example: nsc=5 (2*4+1)
4014+ !> in: 0 1 2 3 4
4015+ !> out: 0 1 2 -2 -1 \
4016+ !> This corresponds to starting at the center cell, going to the right,
4017+ !> and then moving to the far left and get back towards the center:
4018+ !>
4019+ !> 3 4 0 1 2
4020+ !>
4021+ pure function linear2pm(i,n) result(j)
4022+ integer, intent(in) :: i, n
4023+ integer :: j
4024+ !> Note that n needs to be odd for left-right symmetry to
4025+ !> be preserved
4026+ if ( i > n / 2 ) then
4027+ j = -n + i
4028+ else
4029+ j = i
4030+ end if
4031+ end function linear2pm
4032+
4033 subroutine reduce_spin_size(ispin,H_2D,S_1D,Ef)
4034+ use class_OrbitalDistribution
4035+ use class_Sparsity
4036 use class_dSpData1D
4037+ use class_dSpData2D
4038 integer, intent(in) :: ispin
4039 type(dSpData2D), intent(inout) :: H_2D
4040 type(dSpData1D), intent(inout), optional :: S_1D
4041
4042=== modified file 'Src/m_iodm.F90'
4043--- Src/m_iodm.F90 2016-12-09 10:26:17 +0000
4044+++ Src/m_iodm.F90 2018-09-12 13:10:27 +0000
4045@@ -26,7 +26,7 @@
4046
4047 contains
4048
4049- subroutine read_dm( file, dit, DM, found, Bcast )
4050+ subroutine read_dm( file, dit, nsc, DM, found, Bcast )
4051
4052 #ifdef MPI
4053 use mpi_siesta
4054@@ -39,6 +39,8 @@
4055 ! The orbital distribution that should be attached to
4056 ! DM
4057 type(OrbitalDistribution), intent(in) :: dit
4058+ ! The supercell information (if present, otherwise return 0s)
4059+ integer, intent(inout) :: nsc(3)
4060 ! The density matrix
4061 type(dSpData2D), intent(inout) :: DM
4062 logical, intent(out) :: found
4063@@ -48,9 +50,9 @@
4064 ! * LOCAL variables *
4065 ! ************************
4066 type(Sparsity) :: sp
4067- character(len=500) :: fn
4068+ character(len=256) :: fn
4069 logical :: lBcast
4070- integer :: iu, two(2), no_u, nspin
4071+ integer :: iu, five(5), no_u, nspin, ierr
4072 integer, allocatable, target :: gncol(:)
4073 #ifdef MPI
4074 integer :: MPIerror
4075@@ -80,15 +82,28 @@
4076 call io_assign(iu)
4077 open( iu, file=file, form='unformatted', status='old' )
4078 rewind(iu)
4079- read(iu) two
4080+ read(iu,iostat=ierr) five
4081+ if ( ierr /= 0 ) then
4082+ rewind(iu)
4083+ read(iu) five(1), five(2)
4084+ five(3:5) = 0
4085+ end if
4086 end if
4087
4088 #ifdef MPI
4089- call MPI_Bcast(two,2,MPI_integer,0,MPI_Comm_World,MPIerror)
4090+ if ( lBcast ) then
4091+ call MPI_Bcast(five,5,MPI_integer,0,MPI_Comm_World,MPIerror)
4092+ else
4093+ ierr = dist_comm(dit)
4094+ call MPI_Bcast(five,5,MPI_integer,0,ierr,MPIerror)
4095+ end if
4096 #endif
4097
4098- no_u = two(1)
4099- nspin = two(2)
4100+ no_u = five(1)
4101+ nspin = five(2)
4102+ nsc(1) = five(3)
4103+ nsc(2) = five(4)
4104+ nsc(3) = five(5)
4105
4106 allocate(gncol(no_u))
4107 gncol(1) = 1
4108@@ -123,12 +138,13 @@
4109
4110 end subroutine read_dm
4111
4112- subroutine write_dm( file, DM )
4113+ subroutine write_dm( file, nsc, DM )
4114
4115 ! **********************
4116 ! * INPUT variables *
4117 ! **********************
4118 character(len=*), intent(in) :: file
4119+ integer, intent(in) :: nsc(3)
4120 type(dSpData2D), intent(inout) :: DM
4121
4122 ! ************************
4123@@ -153,11 +169,10 @@
4124
4125 ! Open file
4126 call io_assign( iu )
4127- open( iu, file=file, &
4128- form='unformatted', status='unknown' )
4129+ open( iu, file=file, form='unformatted', status='unknown' )
4130 rewind(iu)
4131
4132- write(iu) no_u, nspin
4133+ write(iu) no_u, nspin, nsc
4134
4135 end if
4136
4137
4138=== modified file 'Src/m_new_dm.F90'
4139--- Src/m_new_dm.F90 2018-06-28 13:53:17 +0000
4140+++ Src/m_new_dm.F90 2018-09-12 13:10:27 +0000
4141@@ -60,7 +60,9 @@
4142 subroutine new_DM(SC_changed, DM_history, DM_2D, EDM_2D)
4143
4144 use siesta_options
4145- use siesta_geom, only: ucell, xa, na_u, isc_off, nsc
4146+ use siesta_geom, only: ucell, xa, na_u, isc_off
4147+ use siesta_geom, only: nsc, nsc_old
4148+
4149 use sparse_matrices, only: sparse_pattern, block_dist
4150 use atomlist, only: Datm, iaorb, lasto, no_u
4151 use m_steps, only: istp
4152@@ -82,7 +84,7 @@
4153 use m_energies, only: Ef
4154
4155 logical, intent(in) :: SC_changed ! Has auxiliary supercell changed?
4156- type(Fstack_Pair_Geometry_dSpData2D), intent(inout) :: DM_history
4157+ type(Fstack_Pair_Geometry_dSpData2D), intent(inout) :: DM_history
4158 type(dSpData2D), intent(inout) :: DM_2D, EDM_2D
4159
4160 ! Local variables
4161@@ -100,7 +102,7 @@
4162
4163 if ( IONode ) then
4164 write(*,"(a,i5)") "new_DM -- step: ", istp
4165- endif
4166+ end if
4167
4168 ! In principle we allow the re-use of the DM (i.e, we do not initialize it)
4169 ! Initialization is either:
4170@@ -147,8 +149,9 @@
4171 DM_init = .true.
4172 end if
4173
4174+#ifdef TO_BE_REMOVED
4175 ! ... or if the auxiliary cell has changed
4176- ! (in this case we have to avoid reading back saved copy from file)
4177+ ! (in this case we have to avoid reading back saved copy from file)
4178 if ( SC_changed ) then
4179
4180 if ( initDMaux ) then
4181@@ -167,7 +170,8 @@
4182 write(*,"(a)") "** Warning: since 'ReinitialiseDM' is set to .false."
4183 end if
4184 end if
4185- end if
4186+ end if
4187+#endif
4188
4189 if ( DM_init ) then
4190
4191@@ -175,7 +179,7 @@
4192 write(*,"(a)") "Initializing Density Matrix..."
4193 end if
4194
4195- call init_DM(spin, na_u, no_u, lasto, iaorb, &
4196+ call init_DM(spin, na_u, no_u, nsc, lasto, iaorb, &
4197 Datm, &
4198 block_dist, sparse_pattern, &
4199 DM_2D, EDM_2D, &
4200@@ -193,7 +197,7 @@
4201 if ( IONode ) then
4202 write(*,'(a,i0)') "Number of DMs in history: ", DM_in_history
4203 end if
4204- call extrapolate_dm_with_coords(DM_history, na_u, xa(:,1:na_u), &
4205+ call extrapolate_DM_with_coords(DM_history, na_u, xa(:,1:na_u), &
4206 sparse_pattern, DM_2D)
4207 if ( IONode ) then
4208 write(*,'(a)') "New DM after history re-use:"
4209@@ -356,7 +360,7 @@
4210 ! 1) reading a DM/TSDE(transiesta) file
4211 ! 2) fall-back to atomic initialization using
4212 ! a possibly user-defined spin-configuration.
4213- subroutine init_DM(spin, na_u, no_u, lasto, iaorb, &
4214+ subroutine init_DM(spin, na_u, no_u, nsc, lasto, iaorb, &
4215 DM_atom, &
4216 dit, sp, DM_2D, EDM_2D, &
4217 read_DM, &
4218@@ -381,6 +385,7 @@
4219 ! type(tSpin) spin : spin configuration for this system
4220 ! integer na_u : number of atoms in unit-cell
4221 ! integer no_u : number of orbitals in unit-cell
4222+ ! integer nsc(3) : number of supercells along each direction
4223 ! integer lasto(0:na_u) : last orbital of each atom
4224 ! integer iaorb(no_u) : the atomic index of the corresponding orbital
4225 ! real(dp) DM_atom(no_u) : atomic density based on atomic configuration
4226@@ -401,6 +406,8 @@
4227 integer, intent(in) :: na_u
4228 ! Number of orbitals in the unit-cell
4229 integer, intent(in) :: no_u
4230+ ! Number of supercells along each direction
4231+ integer, intent(in) :: nsc(3)
4232 ! The last orbital on each atom
4233 integer, intent(in) :: lasto(0:na_u)
4234 ! The atom containing orbital "io"
4235@@ -434,7 +441,7 @@
4236 if ( read_DM ) then
4237
4238 ! Try and read the DM from the files
4239- call init_DM_file(spin, no_u, &
4240+ call init_DM_file(spin, no_u, nsc, &
4241 dit, sp, DM_2D, EDM_2D, &
4242 init_method)
4243
4244@@ -488,15 +495,14 @@
4245
4246 end subroutine init_DM
4247
4248-
4249- subroutine init_DM_file(spin, no_u, &
4250+ !> Routine for reading the DM from a file.
4251+ !> This is a simple read-inset routine which reads
4252+ !> a DM/TSDE file, and inserts the quantities
4253+ !> into the the resulting DM (and/or EDM).
4254+ subroutine init_DM_file(spin, no_u, nsc, &
4255 dit, sp, DM_2D, EDM_2D, &
4256 init_method)
4257
4258- ! Routine for reading the DM from a file.
4259- ! This is a simple read-inset routine which reads
4260- ! a DM/TSDE file, and inserts the quantities
4261- ! into the the resulting DM (and/or EDM).
4262
4263 ! If the readed DM file has a different number of spin-components,
4264 ! this routine will easily extrapolate the quantities:
4265@@ -549,11 +555,14 @@
4266 ! stored in the TSDE file.
4267 use m_ts_global_vars,only: TSmode
4268
4269- use m_restruct_SpData2D, only: restructdSpData2D
4270+ use m_handle_sparse, only: correct_supercell_SpD
4271+ use m_handle_sparse, only: unfold_noauxiliary_supercell_SpD
4272+ use m_handle_sparse, only: fold_auxiliary_supercell_SpD
4273
4274 ! ********* INPUT ***************************************************
4275 ! type(tSpin) spin : spin configuration for this system
4276 ! integer no_u : number of orbitals in unit-cell
4277+ ! integer nsc(3) : number of supercells along each direction
4278 ! type(OrbitalDistribution) dit : the distribution used for the orbitals
4279 ! type(Sparsity) sp : sparsity pattern of DM
4280 ! type(dSpData2D) DM_2D : the density matrix
4281@@ -565,29 +574,33 @@
4282 ! 2 == .TSDE read
4283 ! *******************************************************************
4284
4285- ! The spin-configuration that is used to determine the spin-order.
4286+ !> The spin-configuration that is used to determine the spin-order.
4287 type(tSpin), intent(in) :: spin
4288- ! Number of orbitals in the unit-cell
4289+ !> Number of orbitals in the unit-cell
4290 integer, intent(in) :: no_u
4291- ! Parallel distribution of DM/EDM
4292+ !> Number of supercells along each direction
4293+ integer, intent(in) :: nsc(3)
4294+ !> Parallel distribution of DM/EDM
4295 type(OrbitalDistribution), intent(in) :: dit
4296- ! Sparse pattern for DM/EDM
4297+ !> Sparse pattern for DM/EDM
4298 type(Sparsity), intent(inout) :: sp
4299- ! The DM and EDM, these will be initialiazed upon return
4300- ! if the routine could read the files
4301+ !> The DM and EDM, these will be initialiazed upon return
4302+ !> if the routine could read the files
4303 type(dSpData2D), intent(inout) :: DM_2D, EDM_2D
4304
4305- ! To signal the method by which we have read DM/EDM
4306+ !> To signal the method by which we have read DM/EDM
4307 integer, intent(out) :: init_method
4308
4309
4310 ! *** Local variables:
4311+ logical :: corrected_nsc
4312 logical :: DM_found
4313 logical :: TSDE_found
4314 ! The file we should read
4315 character(len=256) :: fname
4316 ! Number of spin-components read from the DM/TSDE file
4317 integer :: nspin_read
4318+ integer :: nsc_read(3)
4319
4320 ! The currently read stuff
4321 type(dSpData2D) :: DM_read
4322@@ -609,13 +622,14 @@
4323 fname = fdf_get('File.TSDE.Init',trim(slabel)//'.TSDE')
4324
4325 ! Try and read the file
4326- call read_ts_dm(trim(fname), dit, DM_read, EDM_read, Ef, TSDE_found)
4327+ call read_ts_dm(trim(fname), dit, nsc_read, DM_read, EDM_read, Ef, TSDE_found)
4328
4329 if ( TSDE_found ) then
4330 ! Signal we have read TSDE
4331 init_method = 2
4332
4333 DM_found = .true.
4334+
4335 else if ( IONode ) then
4336 write(*,'(a)') 'Failed...'
4337 end if
4338@@ -629,11 +643,12 @@
4339 ! Retrieve the name of the initialization file.
4340 fname = fdf_get('File.DM.Init',trim(slabel)//'.DM')
4341
4342- call read_DM(trim(fname), dit, DM_read, DM_found)
4343+ call read_DM(trim(fname), dit, nsc_read, DM_read, DM_found)
4344
4345 if ( DM_found ) then
4346- ! Signal that the DM file has been found
4347- init_method = 1
4348+ ! Signal that the DM file has been found
4349+ init_method = 1
4350+
4351 end if
4352
4353 end if
4354@@ -652,6 +667,7 @@
4355 end if
4356
4357 DM_found = .false.
4358+ TSDE_found = .false.
4359
4360 end if
4361
4362@@ -662,35 +678,81 @@
4363
4364 end if
4365
4366- ! In case the sparsity pattern does not conform we update
4367- ! the TSDE_found, note that DM_found is a logic containing
4368- ! information regarding the sparsity pattern
4369- if ( TSDE_found ) TSDE_found = DM_found
4370
4371 ! Density matrix size checks
4372 if ( DM_found ) then
4373
4374- nspin_read = size(DM_read, 2)
4375-
4376- if ( spin%DM == nspin_read .and. IONode ) then
4377+ corrected_nsc = .false.
4378+ if ( nsc_read(1) /= 0 .and. any(nsc /= nsc_read) ) then
4379+
4380+ ! There are three cases:
4381+ if ( all(nsc_read == 1) .and. fdf_get('DM.Init.Unfold', .true.) ) then
4382+
4383+ ! 1. The read DM was created from a Gamma-only calculation and thus nsc == 1, always.
4384+ ! In this case we know that the DM elements in the Gamma calculation (io,jo)
4385+ ! are replicated in all image cells (io, jo + i_s * no_u) where i_s is the image cell
4386+ ! offfset, since there are no k-points and thus no phases to worry about.
4387+ !
4388+ ! In very special circumstances the user may avoid this behavior by
4389+ ! by setting 'DM.Init.Unfold false'
4390+
4391+ call unfold_noauxiliary_supercell_SpD(sp, DM_read)
4392+ if ( TSDE_found ) then
4393+ call unfold_noauxiliary_supercell_SpD(sp, EDM_read)
4394+ end if
4395+
4396+ else if ( all(nsc == 1) ) then
4397+
4398+ ! 2. The read DM was created from a calculation with a non-trivial auxiliary cell,
4399+ ! and the current calculation is Gamma-only. In this case it is necessary to fold back
4400+ ! all supercell DM entries.
4401+
4402+ call fold_auxiliary_supercell_SpD(sp, DM_read)
4403+ if ( TSDE_found ) then
4404+ call fold_auxiliary_supercell_SpD(sp, EDM_read)
4405+ end if
4406+
4407+ else
4408+
4409+ ! 3. The read DM has a different supercell size. In this case we only copy those
4410+ ! elements that we know exists in the call below.
4411+
4412+ ! Correct the supercell information
4413+ ! Even for EDM this will work because correct_supercell_SpD
4414+ ! changes the sparse pattern in-place and EDM and DM have
4415+ ! a shared sp
4416+ call correct_supercell_SpD(nsc_read, DM_read, nsc)
4417+ corrected_nsc = .true.
4418+
4419+ end if
4420+
4421+ end if
4422+
4423+ nspin_read = size(DM_read, 2)
4424+
4425+ if ( IONode ) then
4426+ if ( spin%DM == nspin_read ) then
4427 write(*,'(a)') 'Succeeded...'
4428- else if ( spin%DM /= nspin_read .and. IONode ) then
4429- if ( spin%DM < nspin_read ) then
4430- write(*,'(a)') 'Succeeded by reducing spin-components...'
4431- else
4432- write(*,'(a)') 'Succeeded by increasing spin-components...'
4433- end if
4434- end if
4435-
4436- if ( IONode ) then
4437- write(*,'(a)') "DM from file:"
4438- call print_type(DM_read)
4439- end if
4440-
4441- call restruct_Data(spin%DM, DM_read, DM_2D)
4442- if ( TSDE_found ) then
4443- call restruct_Data(spin%EDM, EDM_read, EDM_2D)
4444- end if
4445+ else if ( spin%DM < nspin_read ) then
4446+ write(*,'(a)') 'Succeeded by reducing the number of spin-components...'
4447+ else
4448+ write(*,'(a)') 'Succeeded by increasing the number of spin-components...'
4449+ end if
4450+ end if
4451+
4452+ if ( IONode ) then
4453+ write(*,'(a)') "DM from file:"
4454+ call print_type(DM_read)
4455+ end if
4456+
4457+ call restruct_Data(spin%DM, DM_read, DM_2D, .not. corrected_nsc)
4458+ if ( IONode ) then
4459+ write(*,'(a)') "DM to be used:"
4460+ call print_type(DM_2D)
4461+ end if
4462+ if ( TSDE_found ) then
4463+ call restruct_Data(spin%EDM, EDM_read, EDM_2D, .false.)
4464+ end if
4465
4466 end if
4467
4468@@ -702,43 +764,64 @@
4469
4470 contains
4471
4472- subroutine restruct_Data(nspin, in_2D, out_2D)
4473+ !> Driver to fix both the spin dimension and the sparsity pattern
4474+ !> of a DM object, which typically has been read from file.
4475+ !>
4476+ !> Note that only the cases in which one of the spin dimensions is 1
4477+ !> are treated.
4478+
4479+ subroutine restruct_Data(nspin, in_2D, out_2D, show_warning)
4480+
4481+ use m_restruct_SpData2D, only: restruct_dSpData2D
4482+
4483+ !> Current spin dimension in the program
4484 integer, intent(in) :: nspin
4485- type(dSpData2D), intent(inout) :: in_2D, out_2D
4486+ !> Input (DM) bud, to be mined for info
4487+ type(dSpData2D), intent(inout) :: in_2D
4488+ !> Output (DM) bud, created
4489+ type(dSpData2D), intent(inout) :: out_2D
4490+ !> Whether to show sanity-check warnings
4491+ logical, intent(in) :: show_warning
4492
4493 integer :: nspin_read, i
4494- real(dp), pointer :: ar2(:,:)
4495+ real(dp), pointer :: A2(:,:)
4496
4497 nspin_read = size(in_2D, 2)
4498
4499 if ( nspin == 1 .and. nspin /= nspin_read ) then
4500 ! This SCF has 1 spin-component.
4501
4502- ! The readed DM has, at least 2!
4503- ! Thus we sum the spinors to form the non-polarized
4504- ar2 => val(in_2D)
4505+ ! The read DM has at least 2!
4506+ ! Thus we sum the spinors to form the non-polarized version
4507+ A2 => val(in_2D)
4508 !$OMP parallel do default(shared), private(i)
4509- do i = 1 , size(ar2, 1)
4510- ar2(i,1) = ar2(i,1) + ar2(i,2)
4511+ do i = 1 , size(A2, 1)
4512+ A2(i,1) = A2(i,1) + A2(i,2)
4513 end do
4514 !$OMP end parallel do
4515
4516 end if
4517
4518- ! Restructure the sparsity data to the output DM
4519- ! with maximum spin%DM number of spin-components
4520- call restructdSpData2D(in_2D, sp, out_2D, nspin)
4521+ !> Calls [[restruct_dSpData2D]] to re-structure the sparsity
4522+ !> data to match the output DM, with maximum spin%DM number of
4523+ !> spin-components. It returns a new out_2D bud.
4524+ !> @note
4525+ !> The current sparsity pattern `sp` is known here by host association from
4526+ !> the parent routine, which is a bit confusing.
4527+ !> `out_2D` in the called routine. Here it is the `out` sparsity, corresponding
4528+ !> to the current target sparsity in the program.
4529+ !> @endnote
4530+ call restruct_dSpData2D(in_2D, sp, out_2D, nspin, show_warning=show_warning)
4531
4532 if ( nspin_read == 1 .and. nspin /= nspin_read ) then
4533 ! This SCF has more than 2 spin-components.
4534- ! The readed DM has 1.
4535- ! Thus we divide the spinors to form the polarized
4536- ! case.
4537- ar2 => val(out_2D)
4538+ ! The read DM has 1.
4539+ ! Thus we divide the spinors to form the polarized case.
4540+ A2 => val(out_2D)
4541 !$OMP parallel do default(shared), private(i)
4542- do i = 1 , size(ar2, 1)
4543- ar2(i,1) = ar2(i,1) * 0.5_dp
4544- ar2(i,2) = ar2(i,1)
4545+ do i = 1 , size(A2, 1)
4546+ A2(i,1) = A2(i,1) * 0.5_dp
4547+ A2(i,2) = A2(i,1)
4548 end do
4549 !$OMP end parallel do
4550
4551@@ -1244,7 +1327,7 @@
4552 use class_Pair_Geometry_dSpData2D
4553 use class_Fstack_Pair_Geometry_dSpData2D
4554
4555- use m_restruct_SpData2D, only: restructdSpData2D
4556+ use m_restruct_SpData2D, only: restruct_dSpData2D
4557 use fdf, only: fdf_get
4558
4559 type(Fstack_Pair_Geometry_dSpData2D), intent(in) :: DM_history
4560@@ -1327,7 +1410,7 @@
4561 ! if (.not. associated(orb_dist,dist(dm))) then
4562 ! call die("Different orbital distributions in DM history stack")
4563 ! endif
4564- call restructdSpData2D(dm,sparse_pattern,DMtmp)
4565+ call restruct_dSpData2D(dm,sparse_pattern,DMtmp)
4566 ai => val(DMtmp)
4567 !$OMP parallel workshare default(shared)
4568 a = a + c(i) * ai
4569
4570=== modified file 'Src/m_sparse.F90'
4571--- Src/m_sparse.F90 2016-03-01 14:24:48 +0000
4572+++ Src/m_sparse.F90 2018-09-12 13:10:27 +0000
4573@@ -294,6 +294,17 @@
4574
4575 end subroutine list_col_correct_sp
4576
4577+ ! Routine used for calculation the supercell offsets using
4578+ ! the xij_2D array.
4579+ ! Basically this routine runs through all xijo elements
4580+ ! and calculates the cell distance:
4581+ ! R(col(ind) % no_u) = xij(ind) - (xa(j) - xa(i))
4582+ ! This should result in vectors R(...) which are integer
4583+ ! multiples of the lattice vectors:
4584+ ! cell X = R
4585+ ! returns X as integers.
4586+ ! This routine will quit/exit if two supercell indices
4587+ ! col(ind) % no_u does not yield the same R vector.
4588 subroutine xij_offset_sp(cell,nsc,na_u,xa,lasto, &
4589 xij_2D,isc_off,Bcast)
4590
4591
4592=== modified file 'Src/m_supercell.F90'
4593--- Src/m_supercell.F90 2018-05-15 09:48:18 +0000
4594+++ Src/m_supercell.F90 2018-09-12 13:10:27 +0000
4595@@ -1,182 +1,16 @@
4596 module m_supercell
4597
4598 ! Calculates the supercell factors by examining all atoms.
4599-! 1. We find the smallest vector that connects any atom ia1 to
4600-! the neighbouring cell atom ia2 [in direction xyz]
4601-! 2. Loop on supercell factors until it is not overlapping
4602-! 3. Save supercell factor
4603-
4604-! This will correctly capture no supercell factors in
4605-! slaps with only UC connections. This supercell size will typically
4606-! be one less than the usual 1+2*ceiling(rmaxh/vnorm(ucell(:,xyz)))
4607-
4608- ! TODO : create a fully parallel version (each node can take na_u/Nodes
4609- ! atoms)
4610
4611 use precision, only : dp
4612
4613 implicit none
4614
4615- !! public :: exact_sc_size ! not used anymore
4616 public :: exact_sc_ag
4617 private
4618
4619 contains
4620
4621- subroutine exact_sc_size(rmaxh,ucell,na_u,xa,nsc)
4622- use intrinsic_missing, only : VNORM
4623- ! Calculates the exact size required to encompass all super-cells
4624- ! This is a brute force calculation which is over the top, yet
4625- ! it is effictive in reducing the super-cell to the minimum basis
4626- real(dp), intent(in) :: rmaxh
4627- real(dp), intent(in) :: ucell(3,3)
4628- integer, intent(in) :: na_u
4629- real(dp), intent(in) :: xa(3,na_u)
4630- integer, intent(inout) :: nsc(3)
4631-
4632- ! Local variables
4633- integer :: xyz, ia, ja, tnsc(3), idiag
4634- real(dp) :: recell(3,3), v1(3), v2(3), ucdiag(3)
4635- logical :: on_boundary
4636-
4637- call reclat(ucell,recell,0) ! do not add 2 Pi
4638-
4639- ! Initialize new nsc
4640- tnsc(:) = 1
4641-
4642- ! We loop over all atoms and find the two atoms
4643- ! that will be connected by the least
4644- ! length across the first cell boundary
4645- do ia = 1 , na_u
4646- do ja = ia , na_u
4647- on_boundary = (ia == ja)
4648-
4649- ! Vector between atoms
4650- v1(:) = xa(:,ja) - xa(:,ia)
4651-
4652- do xyz = 1 , 3
4653-
4654- ! from i -> J
4655- v2(:) = v1(:) + ucell(:,xyz)
4656- ! update the nsc quantity based on this vector
4657- call update_nsc(rmaxh,ucell(:,xyz),v2,on_boundary,tnsc(xyz))
4658-
4659- ! from j -> I
4660- v2(:) = -v1(:) + ucell(:,xyz)
4661- ! update the nsc quantity based on this vector
4662- call update_nsc(rmaxh,ucell(:,xyz),v2,on_boundary,tnsc(xyz))
4663-
4664- ! Possibly track the diagonal path when
4665- ! having skewed unit-cells. Specifically if
4666- ! |ucell(:,1)|,|ucell(:,2)| > |ucell(:,1) + ucell(:,2)|
4667- ! Thus we should track the diagonal of each direction
4668-
4669- if ( xyz == 3 ) cycle
4670- do idiag = xyz + 1 , 3
4671-
4672- ! get the diagonal unit-cell direction
4673- ucdiag(:) = ucell(:,xyz) + ucell(:,idiag)
4674-
4675- ! from i -> J
4676- v2(:) = v1(:) + ucdiag(:)
4677- ! update the nsc quantity based on this vector (note that
4678- ! the diagonal now takes two into account
4679- call update_nsc(rmaxh,ucdiag,v2,on_boundary,tnsc(xyz))
4680- call update_nsc(rmaxh,ucdiag,v2,on_boundary,tnsc(idiag))
4681-
4682- ! from j -> I
4683- v2(:) = -v1(:) + ucdiag(:)
4684- ! update the nsc quantity based on this vector (note that
4685- ! the diagonal now takes two into account
4686- call update_nsc(rmaxh,ucdiag,v2,on_boundary,tnsc(xyz))
4687- call update_nsc(rmaxh,ucdiag,v2,on_boundary,tnsc(idiag))
4688-
4689- end do
4690-
4691- end do
4692-
4693- ! Do the last diagonal unit-cell direction (a+b+c)
4694- ucdiag(:) = ucell(:,1) + ucell(:,2) + ucell(:,3)
4695-
4696- ! from i -> J
4697- v2(:) = v1(:) + ucdiag(:)
4698- ! update the nsc quantity based on this vector (note that
4699- ! the diagonal now takes two into account
4700- call update_nsc(rmaxh,ucdiag,v2,on_boundary,tnsc(1))
4701- call update_nsc(rmaxh,ucdiag,v2,on_boundary,tnsc(2))
4702- call update_nsc(rmaxh,ucdiag,v2,on_boundary,tnsc(3))
4703-
4704- ! from j -> I
4705- v2(:) = -v1(:) + ucdiag(:)
4706- ! update the nsc quantity based on this vector (note that
4707- ! the diagonal now takes two into account
4708- call update_nsc(rmaxh,ucdiag,v2,on_boundary,tnsc(1))
4709- call update_nsc(rmaxh,ucdiag,v2,on_boundary,tnsc(2))
4710- call update_nsc(rmaxh,ucdiag,v2,on_boundary,tnsc(3))
4711-
4712- end do
4713- end do
4714-
4715- ! Copy over calculated super-cell factors
4716- nsc(:) = tnsc(:)
4717-
4718- contains
4719-
4720- subroutine update_nsc(rmaxh,vcell,v,on_boundary,nsc)
4721- real(dp), intent(in) :: rmaxh
4722- real(dp), intent(in) :: vcell(3)
4723- real(dp), intent(inout) :: v(3)
4724- logical, intent(in) :: on_boundary
4725- integer, intent(inout) :: nsc
4726- real(dp), parameter :: EPS = 1.e-8_dp
4727- real(dp) :: vl
4728- integer :: n
4729-
4730- vl = VNORM(v)
4731-
4732- ! we do not have any connections in the xyz direction
4733- ! Hence we can entirely skip that direction
4734- ! This will be the case for slap calculations
4735- if ( vl > rmaxh + EPS ) return
4736-
4737- n = 1
4738- ! Loop and find the minimum supercell factor
4739- do while ( vl <= rmaxh + EPS )
4740- ! increment supercell atom
4741- n = n + 1
4742- v(:) = v(:) + vcell(:)
4743- vl = vnorm(v)
4744- end do
4745-
4746- ! As vl now is larger than rmaxh we can subtract
4747- ! one from the number of supercells, truncate
4748- ! at 1 as we do have connects across the unit-cell
4749- ! This will typically reduce nsc by one from the
4750- ! naive auxillary cell as the naive calculation
4751- ! must take into account the two atoms lying on the
4752- ! boundary. But this is direct interaction! :)
4753- if ( .not. on_boundary ) then
4754- ! TODO, I think this should ALWAYS be n-1
4755- ! Yet a case example of unit cell:
4756- ! Unit cell vectors (Ang):
4757- ! 1.414210 -2.449490 0.000000
4758- ! 1.414210 2.449490 0.000000
4759- ! 0.000000 0.000000 6.928200
4760- ! yields the wrong supercell indices if using n-1
4761- ! I think maybe the hsparse takes too many non-zero elements?
4762- ! Or are there some additional corrections for the
4763- ! orbital range I do not know of?
4764- n = max(1,n - 1)
4765- end if
4766-
4767- ! UC + n cells on both sides
4768- n = 1 + 2 * n
4769- if ( n > nsc ) nsc = n
4770-
4771- end subroutine update_nsc
4772-
4773- end subroutine exact_sc_size
4774-
4775 ! Calculate the exact super-cell size based on the
4776 ! atomic connection graph.
4777 ! This routine calculates the exact overlap of the atoms,
4778
4779=== modified file 'Src/m_test_io.F90'
4780--- Src/m_test_io.F90 2016-12-08 11:45:49 +0000
4781+++ Src/m_test_io.F90 2018-09-12 13:10:27 +0000
4782@@ -6,7 +6,7 @@
4783
4784 ! Module to test various IO-routines
4785
4786- subroutine time_io(nspin,D_2D)
4787+ subroutine time_io(nspin,nsc,D_2D)
4788
4789 use precision, only : dp
4790 use parallel, only : Node
4791@@ -16,6 +16,7 @@
4792 use m_iodm
4793
4794 integer, intent(in) :: nspin
4795+ integer, intent(in) :: nsc(3)
4796 type(dSpData2D), intent(inout) :: D_2D
4797
4798 type(Sparsity), pointer :: sp
4799@@ -58,7 +59,7 @@
4800
4801 call timer('NICK-io',1)
4802 do i = 1 , N_WRITES
4803- call write_dm('TESTIO.DM',D_2D)
4804+ call write_dm('TESTIO.DM',nsc,D_2D)
4805 end do
4806 call timer('NICK-io',2)
4807
4808
4809=== modified file 'Src/m_ts_electype.F90'
4810--- Src/m_ts_electype.F90 2018-08-31 08:16:05 +0000
4811+++ Src/m_ts_electype.F90 2018-09-12 13:10:27 +0000
4812@@ -1944,7 +1944,7 @@
4813 type(dSpData2D) :: f_DM_2D, f_EDM_2D
4814 real(dp), pointer :: DM(:,:), EDM(:,:)
4815 real(dp) :: tmp, Ef
4816- integer :: Tile(3), Reps(3)
4817+ integer :: Tile(3), Reps(3), fnsc(3)
4818 integer :: i
4819 logical :: found, alloc(3), is_TSDE
4820
4821@@ -1960,10 +1960,10 @@
4822 is_TSDE = ( this%DEfile(i-3:i) == 'TSDE' )
4823 if ( is_TSDE ) then
4824 call read_ts_dm( this%DEfile, fake_dit, &
4825- f_DM_2D, f_EDM_2D, Ef, found, &
4826+ fnsc, f_DM_2D, f_EDM_2D, Ef, found, &
4827 Bcast = .true. )
4828 else
4829- call read_dm( this%DEfile, fake_dit, f_DM_2D, found, &
4830+ call read_dm( this%DEfile, fake_dit, fnsc, f_DM_2D, found, &
4831 Bcast = .true. )
4832 end if
4833 if ( .not. found ) call die('Could not read file: '//trim(this%DEfile))
4834@@ -1972,6 +1972,8 @@
4835 call die('Bulk electrode expansion, read in sparsity pattern, &
4836 &does not match the TSHS sparsity pattern.')
4837 end if
4838+ ! Correct the number of supercells (currently not used)
4839+ if ( fnsc(1) == 0 ) fnsc = this%nsc
4840
4841 ! We must delete the additional arrays read in
4842 call delete(this%H)
4843
4844=== modified file 'Src/m_ts_iodm.F90'
4845--- Src/m_ts_iodm.F90 2016-12-09 10:26:17 +0000
4846+++ Src/m_ts_iodm.F90 2018-09-12 13:10:27 +0000
4847@@ -27,7 +27,7 @@
4848
4849 contains
4850
4851- subroutine read_ts_dm( file, dit, DM, EDM, Ef, found, Bcast)
4852+ subroutine read_ts_dm( file, dit, nsc, DM, EDM, Ef, found, Bcast)
4853
4854 #ifdef MPI
4855 use mpi_siesta
4856@@ -38,6 +38,7 @@
4857 ! **********************
4858 character(len=*), intent(in) :: file
4859 type(OrbitalDistribution), intent(in) :: dit
4860+ integer, intent(inout) :: nsc(3)
4861 type(dSpData2D), intent(inout) :: DM, EDM
4862 real(dp), intent(inout) :: Ef
4863 logical, intent(out) :: found
4864@@ -47,9 +48,9 @@
4865 ! * LOCAL variables *
4866 ! ************************
4867 type(Sparsity) :: sp
4868- character(len=500) :: fn
4869+ character(len=256) :: fn
4870 logical :: lBcast
4871- integer :: iu, two(2), no_u, nspin
4872+ integer :: iu, five(5), no_u, nspin, ierr
4873 integer, allocatable, target :: gncol(:)
4874 #ifdef MPI
4875 integer :: MPIerror
4876@@ -79,15 +80,28 @@
4877 call io_assign(iu)
4878 open( iu, file=file, form='unformatted', status='old' )
4879 rewind(iu)
4880- read(iu) two
4881+ read(iu,iostat=ierr) five
4882+ if ( ierr /= 0 ) then
4883+ rewind(iu)
4884+ read(iu) five(1), five(2)
4885+ five(3:5) = 0
4886+ end if
4887 end if
4888
4889 #ifdef MPI
4890- call MPI_Bcast(two,2,MPI_integer,0,MPI_Comm_World,MPIerror)
4891+ if ( lBcast ) then
4892+ call MPI_Bcast(five,5,MPI_integer,0,MPI_Comm_World,MPIerror)
4893+ else
4894+ ierr = dist_comm(dit)
4895+ call MPI_Bcast(five,5,MPI_integer,0,ierr,MPIerror)
4896+ end if
4897 #endif
4898
4899- no_u = two(1)
4900- nspin = two(2)
4901+ no_u = five(1)
4902+ nspin = five(2)
4903+ nsc(1) = five(3)
4904+ nsc(2) = five(4)
4905+ nsc(3) = five(5)
4906
4907 allocate(gncol(no_u))
4908 gncol(1) = 1
4909@@ -128,18 +142,25 @@
4910 end if
4911
4912 #ifdef MPI
4913- call MPI_BCast(Ef,1,MPI_Double_Precision, &
4914- 0,MPI_Comm_World, MPIerror)
4915+ if ( lBcast ) then
4916+ call MPI_BCast(Ef,1,MPI_Double_Precision, &
4917+ 0,MPI_Comm_World, MPIerror)
4918+ else
4919+ ierr = dist_comm(dit)
4920+ call MPI_Bcast(Ef,1,MPI_Double_Precision, &
4921+ 0,ierr,MPIerror)
4922+ end if
4923 #endif
4924
4925 end subroutine read_ts_dm
4926
4927- subroutine write_ts_dm(file, DM, EDM, Ef )
4928+ subroutine write_ts_dm(file, nsc, DM, EDM, Ef )
4929
4930 ! **********************
4931 ! * INPUT variables *
4932 ! **********************
4933 character(len=*), intent(in) :: file
4934+ integer, intent(in) :: nsc(3)
4935 type(dSpData2D), intent(inout) :: DM, EDM
4936 real(dp), intent(in) :: Ef
4937
4938@@ -168,7 +189,7 @@
4939 open( iu, file=file, form='unformatted', status='unknown' )
4940 rewind(iu)
4941
4942- write(iu) no_u, nspin
4943+ write(iu) no_u, nspin, nsc
4944
4945 end if
4946
4947
4948=== removed file 'Src/md_utils.f90'
4949--- Src/md_utils.f90 2016-01-25 16:00:16 +0000
4950+++ Src/md_utils.f90 1970-01-01 00:00:00 +0000
4951@@ -1,40 +0,0 @@
4952-!
4953-! Copyright (C) 1996-2016 The SIESTA group
4954-! This file is distributed under the terms of the
4955-! GNU General Public License: see COPYING in the top directory
4956-! or http://www.gnu.org/copyleft/gpl.txt.
4957-! See Docs/Contributors.txt for a list of contributors.
4958-!
4959-module md_utils
4960-
4961- use precision, only: dp
4962-
4963- integer, save, public :: md_io_unit = 99
4964- logical, save, public :: restart_with_mdinfo = .false.
4965- logical, save, :: file_opened = .false.
4966-
4967- CONTAINS
4968-
4969- subroutine add_to_md_file(natoms,xa,va,cell,vcell,nose,nosedot)
4970-
4971- integer, intent(in) :: natoms
4972- real(dp), dimension(3,natoms), intent(in) :: xa, va
4973- real(dp), dimension(3,3), intent(in), optional :: cell, vcell
4974- real(dp), intent(in), optional :: nose, nosedot
4975-
4976-! Here we can save x, xa, va for MD (experimental)
4977-!
4978- write(99,*) natoms
4979- do ia = 1,natoms
4980- write(99,'(i4,3f14.8,3x,3f14.8)')
4981- . iza(ia),(xa(i,ia),i=1,3),(va(i,ia),i=1,3)
4982- enddo
4983-
4984- have_nose = present(nose)
4985- have_nosedot = present(nosedot)
4986-
4987- if (have_nose) then
4988- write(99,*) nose
4989- endif
4990-
4991- end subroutine add_to_md_file
4992
4993=== modified file 'Src/post_scf_work.F'
4994--- Src/post_scf_work.F 2018-06-26 07:41:31 +0000
4995+++ Src/post_scf_work.F 2018-09-12 13:10:27 +0000
4996@@ -161,8 +161,8 @@
4997 ! Save (geom,DM) pair to history stack
4998 write(msg,"(a,i0)") "step: ",istep
4999 call newGeometry(geom,na_u,ucell,xa,isa,
5000- $ name="Geometry for " // msg)
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches