mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-11-03 20:54:09 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@704fddc7a5 🚀
This commit is contained in:
parent
b0770ff6c1
commit
13103673ed
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-07-07 Wed 17:10 -->
|
||||
<!-- 2021-07-07 Wed 23:26 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>QMCkl source code documentation</title>
|
||||
@ -352,7 +352,7 @@ and bug reports should be submitted at
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 17:10</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 23:26</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
102
qmckl.html
102
qmckl.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-07-07 Wed 17:10 -->
|
||||
<!-- 2021-07-07 Wed 23:26 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Introduction</title>
|
||||
@ -333,30 +333,30 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org6a8f8a8">1. Using QMCkl</a></li>
|
||||
<li><a href="#org24282ab">2. Developing in QMCkl</a>
|
||||
<li><a href="#orgeeb3a72">1. Using QMCkl</a></li>
|
||||
<li><a href="#org185e554">2. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org9ab506b">2.1. Literate programming</a></li>
|
||||
<li><a href="#org0c81fa4">2.2. Source code editing</a></li>
|
||||
<li><a href="#org846a545">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org1c7a142">2.4. Coding rules</a></li>
|
||||
<li><a href="#org133972e">2.5. Design of the library</a></li>
|
||||
<li><a href="#orgb891bbf">2.6. Naming conventions</a></li>
|
||||
<li><a href="#org5fe1c71">2.7. Application programming interface</a></li>
|
||||
<li><a href="#orged38d26">2.8. Global state</a></li>
|
||||
<li><a href="#org43cd318">2.9. Headers</a></li>
|
||||
<li><a href="#orgfbb9376">2.10. Low-level functions</a></li>
|
||||
<li><a href="#orge29b956">2.11. High-level functions</a></li>
|
||||
<li><a href="#org5cce3d3">2.12. Numerical precision</a></li>
|
||||
<li><a href="#org858c13f">2.13. Algorithms</a></li>
|
||||
<li><a href="#orgf7e846c">2.1. Literate programming</a></li>
|
||||
<li><a href="#orgbe282da">2.2. Source code editing</a></li>
|
||||
<li><a href="#org19ae2ef">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orgd0486de">2.4. Coding rules</a></li>
|
||||
<li><a href="#org832c1d8">2.5. Design of the library</a></li>
|
||||
<li><a href="#org8723f0a">2.6. Naming conventions</a></li>
|
||||
<li><a href="#orgdd1ce3b">2.7. Application programming interface</a></li>
|
||||
<li><a href="#org31bb7bf">2.8. Global state</a></li>
|
||||
<li><a href="#org60b3f2a">2.9. Headers</a></li>
|
||||
<li><a href="#org0a3fc49">2.10. Low-level functions</a></li>
|
||||
<li><a href="#org33d52c3">2.11. High-level functions</a></li>
|
||||
<li><a href="#org8909f30">2.12. Numerical precision</a></li>
|
||||
<li><a href="#orgd5366d5">2.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6a8f8a8" class="outline-2">
|
||||
<h2 id="org6a8f8a8"><span class="section-number-2">1</span> Using QMCkl</h2>
|
||||
<div id="outline-container-orgeeb3a72" class="outline-2">
|
||||
<h2 id="orgeeb3a72"><span class="section-number-2">1</span> Using QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The <code>qmckl.h</code> header file installed in the <code>${prefix}/include</code> directory
|
||||
@ -385,12 +385,12 @@ Both files are located in the <code>include/</code> directory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org24282ab" class="outline-2">
|
||||
<h2 id="org24282ab"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org185e554" class="outline-2">
|
||||
<h2 id="org185e554"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org9ab506b" class="outline-3">
|
||||
<h3 id="org9ab506b"><span class="section-number-3">2.1</span> Literate programming</h3>
|
||||
<div id="outline-container-orgf7e846c" class="outline-3">
|
||||
<h3 id="orgf7e846c"><span class="section-number-3">2.1</span> Literate programming</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
In a traditional source code, most of the lines of source files of a program
|
||||
@ -435,8 +435,8 @@ interactively, in the same spirit as Jupyter notebooks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0c81fa4" class="outline-3">
|
||||
<h3 id="org0c81fa4"><span class="section-number-3">2.2</span> Source code editing</h3>
|
||||
<div id="outline-container-orgbe282da" class="outline-3">
|
||||
<h3 id="orgbe282da"><span class="section-number-3">2.2</span> Source code editing</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
For a tutorial on literate programming with org-mode, follow <a href="http://www.howardism.org/Technical/Emacs/literate-programming-tutorial.html">this link</a>.
|
||||
@ -467,8 +467,8 @@ org-mode.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org846a545" class="outline-3">
|
||||
<h3 id="org846a545"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org19ae2ef" class="outline-3">
|
||||
<h3 id="org19ae2ef"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some scripts in
|
||||
@ -516,8 +516,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1c7a142" class="outline-3">
|
||||
<h3 id="org1c7a142"><span class="section-number-3">2.4</span> Coding rules</h3>
|
||||
<div id="outline-container-orgd0486de" class="outline-3">
|
||||
<h3 id="orgd0486de"><span class="section-number-3">2.4</span> Coding rules</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
The authors should follow the recommendations of the C99
|
||||
@ -535,8 +535,8 @@ Compliance can be checked with <code>cppcheck</code> as:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org133972e" class="outline-3">
|
||||
<h3 id="org133972e"><span class="section-number-3">2.5</span> Design of the library</h3>
|
||||
<div id="outline-container-org832c1d8" class="outline-3">
|
||||
<h3 id="org832c1d8"><span class="section-number-3">2.5</span> Design of the library</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
The proposed API should allow the library to: deal with memory transfers
|
||||
@ -547,8 +547,8 @@ functions (see below).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb891bbf" class="outline-3">
|
||||
<h3 id="orgb891bbf"><span class="section-number-3">2.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-org8723f0a" class="outline-3">
|
||||
<h3 id="org8723f0a"><span class="section-number-3">2.6</span> Naming conventions</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
||||
@ -573,8 +573,8 @@ form is allowed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5fe1c71" class="outline-3">
|
||||
<h3 id="org5fe1c71"><span class="section-number-3">2.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-orgdd1ce3b" class="outline-3">
|
||||
<h3 id="orgdd1ce3b"><span class="section-number-3">2.7</span> Application programming interface</h3>
|
||||
<div class="outline-text-3" id="text-2-7">
|
||||
<p>
|
||||
In the C language, the number of bits used by the integer types can change
|
||||
@ -606,15 +606,15 @@ bindings in other languages in other repositories.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orged38d26" class="outline-3">
|
||||
<h3 id="orged38d26"><span class="section-number-3">2.8</span> Global state</h3>
|
||||
<div id="outline-container-org31bb7bf" class="outline-3">
|
||||
<h3 id="org31bb7bf"><span class="section-number-3">2.8</span> Global state</h3>
|
||||
<div class="outline-text-3" id="text-2-8">
|
||||
<p>
|
||||
Global variables should be avoided in the library, because it is
|
||||
possible that one single program needs to use multiple instances
|
||||
of the library. To solve this problem we propose to use a pointer
|
||||
to a <a href="./qmckl_context.html"><code>context</code></a> variable, built by the library with the
|
||||
<code>qmckl_context_create</code> function. The <a id="orga0d7ff6">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="org9619ce0">=context=</a> contains the global
|
||||
state of the library, and is used as the first argument of many
|
||||
QMCkl functions.
|
||||
</p>
|
||||
@ -628,8 +628,8 @@ the state is done by setters and getters, prefixed by
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org43cd318" class="outline-3">
|
||||
<h3 id="org43cd318"><span class="section-number-3">2.9</span> Headers</h3>
|
||||
<div id="outline-container-org60b3f2a" class="outline-3">
|
||||
<h3 id="org60b3f2a"><span class="section-number-3">2.9</span> Headers</h3>
|
||||
<div class="outline-text-3" id="text-2-9">
|
||||
<p>
|
||||
A single <code>qmckl.h</code> header to be distributed by the library
|
||||
@ -717,8 +717,8 @@ and the types definitions should be written in the <code>*fh_type.f90</code> fil
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfbb9376" class="outline-3">
|
||||
<h3 id="orgfbb9376"><span class="section-number-3">2.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org0a3fc49" class="outline-3">
|
||||
<h3 id="org0a3fc49"><span class="section-number-3">2.10</span> Low-level functions</h3>
|
||||
<div class="outline-text-3" id="text-2-10">
|
||||
<p>
|
||||
Low-level functions are very simple functions which are leaves of
|
||||
@ -727,14 +727,14 @@ the function call tree (they don't call any other QMCkl function).
|
||||
|
||||
<p>
|
||||
These functions are <i>pure</i>, and unaware of the QMCkl
|
||||
<a href="#orga0d7ff6"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#org9619ce0"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
if they need temporary memory it should be provided in input.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge29b956" class="outline-3">
|
||||
<h3 id="orge29b956"><span class="section-number-3">2.11</span> High-level functions</h3>
|
||||
<div id="outline-container-org33d52c3" class="outline-3">
|
||||
<h3 id="org33d52c3"><span class="section-number-3">2.11</span> High-level functions</h3>
|
||||
<div class="outline-text-3" id="text-2-11">
|
||||
<p>
|
||||
High-level functions are at the top of the function call tree.
|
||||
@ -747,27 +747,27 @@ temporary storage, to simplify the use of accelerators.
|
||||
<p>
|
||||
The high-level functions should be pure, unless the introduction
|
||||
of non-purity is justified. All the side effects should be made in
|
||||
the <a href="#orga0d7ff6"><code>context</code></a> variable.
|
||||
the <a href="#org9619ce0"><code>context</code></a> variable.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5cce3d3" class="outline-3">
|
||||
<h3 id="org5cce3d3"><span class="section-number-3">2.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org8909f30" class="outline-3">
|
||||
<h3 id="org8909f30"><span class="section-number-3">2.12</span> Numerical precision</h3>
|
||||
<div class="outline-text-3" id="text-2-12">
|
||||
<p>
|
||||
The number of bits of precision required for a function should be
|
||||
given as an input of low-level computational functions. This input
|
||||
will be used to define the values of the different thresholds that
|
||||
might be used to avoid computing unnecessary noise. High-level
|
||||
functions will use the precision specified in the <a href="#orga0d7ff6"><code>context</code></a>
|
||||
functions will use the precision specified in the <a href="#org9619ce0"><code>context</code></a>
|
||||
variable.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org858c13f" class="outline-3">
|
||||
<h3 id="org858c13f"><span class="section-number-3">2.13</span> Algorithms</h3>
|
||||
<div id="outline-container-orgd5366d5" class="outline-3">
|
||||
<h3 id="orgd5366d5"><span class="section-number-3">2.13</span> Algorithms</h3>
|
||||
<div class="outline-text-3" id="text-2-13">
|
||||
<p>
|
||||
Reducing the scaling of an algorithm usually implies also reducing
|
||||
@ -783,7 +783,7 @@ implemented adapted to different problem sizes.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 17:10</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 23:26</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
246
qmckl_ao.html
246
qmckl_ao.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-07-07 Wed 17:10 -->
|
||||
<!-- 2021-07-07 Wed 23:26 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Atomic Orbitals</title>
|
||||
@ -333,69 +333,69 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org70f0e1c">1. Context</a>
|
||||
<li><a href="#orgc2e0e97">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org972d813">1.1. Data structure</a></li>
|
||||
<li><a href="#orgb648a46">1.2. Access functions</a></li>
|
||||
<li><a href="#orgc2939c8">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orge60a6ce">1.4. Fortran interfaces</a></li>
|
||||
<li><a href="#orgfdee200">1.1. Data structure</a></li>
|
||||
<li><a href="#orge22f46b">1.2. Access functions</a></li>
|
||||
<li><a href="#org630901b">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org030ca71">1.4. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge5342bb">2. Radial part</a>
|
||||
<li><a href="#orga34e4bd">2. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org9ae3e9c">2.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org1ec07df">2.2. <span class="todo TODO">TODO</span> General functions for Slater basis functions</a></li>
|
||||
<li><a href="#org229f154">2.3. <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</a></li>
|
||||
<li><a href="#org446d630">2.4. <span class="done DONE">DONE</span> Computation of primitives</a>
|
||||
<li><a href="#org284d026">2.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org16c1815">2.2. <span class="todo TODO">TODO</span> General functions for Slater basis functions</a></li>
|
||||
<li><a href="#org717671c">2.3. <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</a></li>
|
||||
<li><a href="#org9a4790a">2.4. <span class="done DONE">DONE</span> Computation of primitives</a>
|
||||
<ul>
|
||||
<li><a href="#orged1bce8">2.4.1. Get</a></li>
|
||||
<li><a href="#org55626c6">2.4.2. Provide</a></li>
|
||||
<li><a href="#org796c96c">2.4.3. Compute</a></li>
|
||||
<li><a href="#org4e708ff">2.4.4. Test</a></li>
|
||||
<li><a href="#org45f7dc4">2.4.5. Ideas for improvement</a></li>
|
||||
<li><a href="#org842e81e">2.4.1. Get</a></li>
|
||||
<li><a href="#orgf1f37e9">2.4.2. Provide</a></li>
|
||||
<li><a href="#org9ba934a">2.4.3. Compute</a></li>
|
||||
<li><a href="#orgae0d578">2.4.4. Test</a></li>
|
||||
<li><a href="#org85717ec">2.4.5. Ideas for improvement</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdb93bd3">2.5. Computation of shells</a>
|
||||
<li><a href="#org6add407">2.5. Computation of shells</a>
|
||||
<ul>
|
||||
<li><a href="#orgd0d9f37">2.5.1. Get</a></li>
|
||||
<li><a href="#orgd82c39b">2.5.2. Provide</a></li>
|
||||
<li><a href="#orgdf3c183">2.5.3. Compute</a></li>
|
||||
<li><a href="#org0d77450">2.5.4. Test</a></li>
|
||||
<li><a href="#org6358d39">2.5.1. Get</a></li>
|
||||
<li><a href="#org18b5957">2.5.2. Provide</a></li>
|
||||
<li><a href="#orgf6600a5">2.5.3. Compute</a></li>
|
||||
<li><a href="#orge111bb3">2.5.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3857cba">3. Polynomial part</a>
|
||||
<li><a href="#orgf5cf8fd">3. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org7f47d1f">3.1. General functions for Powers of \(x-X_i\)</a>
|
||||
<li><a href="#org4a4013b">3.1. General functions for Powers of \(x-X_i\)</a>
|
||||
<ul>
|
||||
<li><a href="#org849986a">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org8971ca9">3.1.2. C Header</a></li>
|
||||
<li><a href="#org19f4dd5">3.1.3. Source</a></li>
|
||||
<li><a href="#org6578f48">3.1.4. C interface</a></li>
|
||||
<li><a href="#orgd36c057">3.1.5. Fortran interface</a></li>
|
||||
<li><a href="#org90c8f29">3.1.6. Test</a></li>
|
||||
<li><a href="#orgc6b763d">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgd92fb7d">3.1.2. C Header</a></li>
|
||||
<li><a href="#org123d973">3.1.3. Source</a></li>
|
||||
<li><a href="#org255d64f">3.1.4. C interface</a></li>
|
||||
<li><a href="#org55e9539">3.1.5. Fortran interface</a></li>
|
||||
<li><a href="#org36a4866">3.1.6. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc8c924e">3.2. General functions for Value, Gradient and Laplacian of a polynomial</a>
|
||||
<li><a href="#orgaf073a7">3.2. General functions for Value, Gradient and Laplacian of a polynomial</a>
|
||||
<ul>
|
||||
<li><a href="#orgea6519d">3.2.1. Requirements</a></li>
|
||||
<li><a href="#org108a694">3.2.2. C Header</a></li>
|
||||
<li><a href="#org6eee875">3.2.3. Source</a></li>
|
||||
<li><a href="#org2c6823a">3.2.4. C interface</a></li>
|
||||
<li><a href="#orgbfb30f7">3.2.5. Fortran interface</a></li>
|
||||
<li><a href="#orgbab8d63">3.2.6. Test</a></li>
|
||||
<li><a href="#org7279472">3.2.1. Requirements</a></li>
|
||||
<li><a href="#org679d8c2">3.2.2. C Header</a></li>
|
||||
<li><a href="#org2761256">3.2.3. Source</a></li>
|
||||
<li><a href="#orgefb6392">3.2.4. C interface</a></li>
|
||||
<li><a href="#orgc5aa119">3.2.5. Fortran interface</a></li>
|
||||
<li><a href="#org8843548">3.2.6. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb64226e">4. Combining radial and polynomial parts</a></li>
|
||||
<li><a href="#org8f91712">4. Combining radial and polynomial parts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org70f0e1c" class="outline-2">
|
||||
<h2 id="org70f0e1c"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgc2e0e97" class="outline-2">
|
||||
<h2 id="orgc2e0e97"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following arrays are stored in the context:
|
||||
@ -495,6 +495,12 @@ Computed data:
|
||||
<col class="org-left" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="org-left"><code>coefficient_normalized</code></th>
|
||||
<th scope="col" class="org-left"><code>[prim_num]</code></th>
|
||||
<th scope="col" class="org-left">Normalized primitive coefficients</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="col" class="org-left"><code>nucleus_prim_index</code></th>
|
||||
<th scope="col" class="org-left"><code>[nucl_num]</code></th>
|
||||
@ -611,8 +617,8 @@ prim_factor = [ 1.0006253235944540e+01, 2.4169531573445120e+00, 7.96109248497664
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org972d813" class="outline-3">
|
||||
<h3 id="org972d813"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgfdee200" class="outline-3">
|
||||
<h3 id="orgfdee200"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_ao_basis_struct</span> {
|
||||
@ -623,12 +629,14 @@ prim_factor = [ 1.0006253235944540e+01, 2.4169531573445120e+00, 7.96109248497664
|
||||
<span style="color: #228b22;">int64_t</span> * <span style="color: #a0522d;">nucleus_shell_num</span>;
|
||||
<span style="color: #228b22;">int32_t</span> * <span style="color: #a0522d;">shell_ang_mom</span>;
|
||||
<span style="color: #228b22;">int64_t</span> * <span style="color: #a0522d;">shell_prim_num</span>;
|
||||
<span style="color: #228b22;">int64_t</span> * <span style="color: #a0522d;">nucleus_prim_index</span>;
|
||||
<span style="color: #228b22;">int64_t</span> * <span style="color: #a0522d;">shell_prim_index</span>;
|
||||
<span style="color: #228b22;">double</span> * <span style="color: #a0522d;">shell_factor</span>;
|
||||
<span style="color: #228b22;">double</span> * <span style="color: #a0522d;">exponent</span> ;
|
||||
<span style="color: #228b22;">double</span> * <span style="color: #a0522d;">coefficient</span> ;
|
||||
<span style="color: #228b22;">double</span> * <span style="color: #a0522d;">prim_factor</span> ;
|
||||
|
||||
<span style="color: #228b22;">int64_t</span> * <span style="color: #a0522d;">nucleus_prim_index</span>;
|
||||
<span style="color: #228b22;">double</span> * <span style="color: #a0522d;">coefficient_normalized</span> ;
|
||||
<span style="color: #228b22;">double</span> * <span style="color: #a0522d;">primitive_vgl</span>;
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">primitive_vgl_date</span>;
|
||||
<span style="color: #228b22;">double</span> * <span style="color: #a0522d;">shell_vgl</span>;
|
||||
@ -676,8 +684,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb648a46" class="outline-3">
|
||||
<h3 id="orgb648a46"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orge22f46b" class="outline-3">
|
||||
<h3 id="orge22f46b"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data for the AOs have been provided, the following
|
||||
@ -691,8 +699,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc2939c8" class="outline-3">
|
||||
<h3 id="orgc2939c8"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org630901b" class="outline-3">
|
||||
<h3 id="org630901b"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -727,17 +735,17 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge60a6ce" class="outline-3">
|
||||
<h3 id="orge60a6ce"><span class="section-number-3">1.4</span> Fortran interfaces</h3>
|
||||
<div id="outline-container-org030ca71" class="outline-3">
|
||||
<h3 id="org030ca71"><span class="section-number-3">1.4</span> Fortran interfaces</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge5342bb" class="outline-2">
|
||||
<h2 id="orge5342bb"><span class="section-number-2">2</span> Radial part</h2>
|
||||
<div id="outline-container-orga34e4bd" class="outline-2">
|
||||
<h2 id="orga34e4bd"><span class="section-number-2">2</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org9ae3e9c" class="outline-3">
|
||||
<h3 id="org9ae3e9c"><span class="section-number-3">2.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-org284d026" class="outline-3">
|
||||
<h3 id="org284d026"><span class="section-number-3">2.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
<code>qmckl_ao_gaussian_vgl</code> computes the values, gradients and
|
||||
@ -969,18 +977,18 @@ Requirements
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ec07df" class="outline-3">
|
||||
<h3 id="org1ec07df"><span class="section-number-3">2.2</span> <span class="todo TODO">TODO</span> General functions for Slater basis functions</h3>
|
||||
<div id="outline-container-org16c1815" class="outline-3">
|
||||
<h3 id="org16c1815"><span class="section-number-3">2.2</span> <span class="todo TODO">TODO</span> General functions for Slater basis functions</h3>
|
||||
</div>
|
||||
<div id="outline-container-org229f154" class="outline-3">
|
||||
<h3 id="org229f154"><span class="section-number-3">2.3</span> <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</h3>
|
||||
<div id="outline-container-org717671c" class="outline-3">
|
||||
<h3 id="org717671c"><span class="section-number-3">2.3</span> <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</h3>
|
||||
</div>
|
||||
<div id="outline-container-org446d630" class="outline-3">
|
||||
<h3 id="org446d630"><span class="section-number-3">2.4</span> <span class="done DONE">DONE</span> Computation of primitives</h3>
|
||||
<div id="outline-container-org9a4790a" class="outline-3">
|
||||
<h3 id="org9a4790a"><span class="section-number-3">2.4</span> <span class="done DONE">DONE</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
</div>
|
||||
<div id="outline-container-orged1bce8" class="outline-4">
|
||||
<h4 id="orged1bce8"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org842e81e" class="outline-4">
|
||||
<h4 id="org842e81e"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_ao_basis_primitive_vgl</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">primitive_vgl</span>);
|
||||
@ -989,14 +997,14 @@ Requirements
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org55626c6" class="outline-4">
|
||||
<h4 id="org55626c6"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-orgf1f37e9" class="outline-4">
|
||||
<h4 id="orgf1f37e9"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org796c96c" class="outline-4">
|
||||
<h4 id="org796c96c"><span class="section-number-4">2.4.3</span> Compute</h4>
|
||||
<div id="outline-container-org9ba934a" class="outline-4">
|
||||
<h4 id="org9ba934a"><span class="section-number-4">2.4.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<table id="org4a030f6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3c812ff" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1140,12 +1148,12 @@ Requirements
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4e708ff" class="outline-4">
|
||||
<h4 id="org4e708ff"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-orgae0d578" class="outline-4">
|
||||
<h4 id="orgae0d578"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org45f7dc4" class="outline-4">
|
||||
<h4 id="org45f7dc4"><span class="section-number-4">2.4.5</span> Ideas for improvement</h4>
|
||||
<div id="outline-container-org85717ec" class="outline-4">
|
||||
<h4 id="org85717ec"><span class="section-number-4">2.4.5</span> Ideas for improvement</h4>
|
||||
<div class="outline-text-4" id="text-2-4-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">// <span style="color: #b22222;">m : walkers</span>
|
||||
@ -1182,12 +1190,12 @@ k=0;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdb93bd3" class="outline-3">
|
||||
<h3 id="orgdb93bd3"><span class="section-number-3">2.5</span> Computation of shells</h3>
|
||||
<div id="outline-container-org6add407" class="outline-3">
|
||||
<h3 id="org6add407"><span class="section-number-3">2.5</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
</div>
|
||||
<div id="outline-container-orgd0d9f37" class="outline-4">
|
||||
<h4 id="orgd0d9f37"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div id="outline-container-org6358d39" class="outline-4">
|
||||
<h4 id="org6358d39"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_ao_basis_shell_vgl</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">shell_vgl</span>);
|
||||
@ -1196,14 +1204,14 @@ k=0;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd82c39b" class="outline-4">
|
||||
<h4 id="orgd82c39b"><span class="section-number-4">2.5.2</span> Provide</h4>
|
||||
<div id="outline-container-org18b5957" class="outline-4">
|
||||
<h4 id="org18b5957"><span class="section-number-4">2.5.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdf3c183" class="outline-4">
|
||||
<h4 id="orgdf3c183"><span class="section-number-4">2.5.3</span> Compute</h4>
|
||||
<div id="outline-container-orgf6600a5" class="outline-4">
|
||||
<h4 id="orgf6600a5"><span class="section-number-4">2.5.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-3">
|
||||
<table id="org9e49e54" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc36e909" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1309,7 +1317,7 @@ k=0;
|
||||
|
||||
<tr>
|
||||
<td class="org-left"><code>double</code></td>
|
||||
<td class="org-left"><code>coef[prim_num]</code></td>
|
||||
<td class="org-left"><code>coef_normalized[prim_num]</code></td>
|
||||
<td class="org-left">in</td>
|
||||
<td class="org-left">Coefficients of the primitives</td>
|
||||
</tr>
|
||||
@ -1327,7 +1335,7 @@ k=0;
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_compute_ao_basis_shell_gaussian_vgl_f(context, </span><span style="color: #a020f0;">&</span>
|
||||
prim_num, shell_num, elec_num, nucl_num, walk_num, <span style="color: #a020f0;">&</span>
|
||||
nucleus_shell_num, nucleus_index, shell_prim_index, shell_prim_num, <span style="color: #a020f0;">&</span>
|
||||
elec_coord, nucl_coord, expo, coef, shell_vgl) <span style="color: #a020f0;">&</span>
|
||||
elec_coord, nucl_coord, expo, coef_normalized, shell_vgl) <span style="color: #a020f0;">&</span>
|
||||
<span style="color: #a020f0;">result</span>(info)
|
||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>
|
||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
||||
@ -1344,7 +1352,7 @@ k=0;
|
||||
<span style="color: #228b22;">double precision</span> , <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> elec_coord(elec_num,3,walk_num)</span>
|
||||
<span style="color: #228b22;">double precision</span> , <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> nucl_coord(nucl_num,3)</span>
|
||||
<span style="color: #228b22;">double precision</span> , <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> expo(prim_num)</span>
|
||||
<span style="color: #228b22;">double precision</span> , <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> coef(prim_num)</span>
|
||||
<span style="color: #228b22;">double precision</span> , <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> coef_normalized(prim_num)</span>
|
||||
<span style="color: #228b22;">double precision</span> , <span style="color: #a020f0;">intent</span>(out) ::<span style="color: #a0522d;"> shell_vgl(elec_num,walk_num,5,shell_num)</span>
|
||||
|
||||
<span style="color: #228b22;">integer</span>*8 ::<span style="color: #a0522d;"> inucl, iprim, iwalk, ielec, ishell</span>
|
||||
@ -1378,7 +1386,7 @@ k=0;
|
||||
<span style="color: #a020f0;">cycle</span>
|
||||
<span style="color: #a020f0;">end if</span>
|
||||
|
||||
v = coef(iprim) * dexp(-ar2)
|
||||
v = coef_normalized(iprim) * dexp(-ar2)
|
||||
two_a = -2.d0 * expo(iprim) * v
|
||||
|
||||
shell_vgl(ielec, iwalk, 1, ishell) = <span style="color: #a020f0;">&</span>
|
||||
@ -1411,18 +1419,18 @@ k=0;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org0d77450" class="outline-4">
|
||||
<h4 id="org0d77450"><span class="section-number-4">2.5.4</span> Test</h4>
|
||||
<div id="outline-container-orge111bb3" class="outline-4">
|
||||
<h4 id="orge111bb3"><span class="section-number-4">2.5.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3857cba" class="outline-2">
|
||||
<h2 id="org3857cba"><span class="section-number-2">3</span> Polynomial part</h2>
|
||||
<div id="outline-container-orgf5cf8fd" class="outline-2">
|
||||
<h2 id="orgf5cf8fd"><span class="section-number-2">3</span> Polynomial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org7f47d1f" class="outline-3">
|
||||
<h3 id="org7f47d1f"><span class="section-number-3">3.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-org4a4013b" class="outline-3">
|
||||
<h3 id="org4a4013b"><span class="section-number-3">3.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
The <code>qmckl_ao_power</code> function computes all the powers of the <code>n</code>
|
||||
@ -1434,7 +1442,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="orgcaf2c72" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org48f8520" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1492,8 +1500,8 @@ the \(n\) points:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org849986a" class="outline-4">
|
||||
<h4 id="org849986a"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgc6b763d" class="outline-4">
|
||||
<h4 id="orgc6b763d"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1506,8 +1514,8 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8971ca9" class="outline-4">
|
||||
<h4 id="org8971ca9"><span class="section-number-4">3.1.2</span> C Header</h4>
|
||||
<div id="outline-container-orgd92fb7d" class="outline-4">
|
||||
<h4 id="orgd92fb7d"><span class="section-number-4">3.1.2</span> C Header</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_ao_power</span> (
|
||||
@ -1522,8 +1530,8 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org19f4dd5" class="outline-4">
|
||||
<h4 id="org19f4dd5"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-org123d973" class="outline-4">
|
||||
<h4 id="org123d973"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer </span><span style="color: #a020f0;">function</span><span style="color: #a0522d;"> </span><span style="color: #0000ff;">qmckl_ao_power_f</span><span style="color: #000000; background-color: #ffffff;">(context, n, X, LMAX, P, ldp) result(info)</span>
|
||||
@ -1574,15 +1582,15 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6578f48" class="outline-4">
|
||||
<h4 id="org6578f48"><span class="section-number-4">3.1.4</span> C interface</h4>
|
||||
<div id="outline-container-org255d64f" class="outline-4">
|
||||
<h4 id="org255d64f"><span class="section-number-4">3.1.4</span> C interface</h4>
|
||||
</div>
|
||||
<div id="outline-container-orgd36c057" class="outline-4">
|
||||
<h4 id="orgd36c057"><span class="section-number-4">3.1.5</span> Fortran interface</h4>
|
||||
<div id="outline-container-org55e9539" class="outline-4">
|
||||
<h4 id="org55e9539"><span class="section-number-4">3.1.5</span> Fortran interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org90c8f29" class="outline-4">
|
||||
<h4 id="org90c8f29"><span class="section-number-4">3.1.6</span> Test</h4>
|
||||
<div id="outline-container-org36a4866" class="outline-4">
|
||||
<h4 id="org36a4866"><span class="section-number-4">3.1.6</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-1-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span>(<span style="color: #008b8b;">c_int32_t</span>) <span style="color: #a020f0;">function</span> <span style="color: #0000ff;">test_qmckl_ao_power</span>(context) <span style="color: #a020f0;">bind</span>(C)
|
||||
@ -1633,8 +1641,8 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc8c924e" class="outline-3">
|
||||
<h3 id="orgc8c924e"><span class="section-number-3">3.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-orgaf073a7" class="outline-3">
|
||||
<h3 id="orgaf073a7"><span class="section-number-3">3.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<p>
|
||||
A polynomial is centered on a nucleus \(\mathbf{R}_i\)
|
||||
@ -1679,7 +1687,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="orgd9320a3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org75535b1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1758,8 +1766,8 @@ angular momentum up to <code>lmax</code>.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgea6519d" class="outline-4">
|
||||
<h4 id="orgea6519d"><span class="section-number-4">3.2.1</span> Requirements</h4>
|
||||
<div id="outline-container-org7279472" class="outline-4">
|
||||
<h4 id="org7279472"><span class="section-number-4">3.2.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-2-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1784,8 +1792,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org108a694" class="outline-4">
|
||||
<h4 id="org108a694"><span class="section-number-4">3.2.2</span> C Header</h4>
|
||||
<div id="outline-container-org679d8c2" class="outline-4">
|
||||
<h4 id="org679d8c2"><span class="section-number-4">3.2.2</span> C Header</h4>
|
||||
<div class="outline-text-4" id="text-3-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_ao_polynomial_vgl</span> (
|
||||
@ -1803,8 +1811,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6eee875" class="outline-4">
|
||||
<h4 id="org6eee875"><span class="section-number-4">3.2.3</span> Source</h4>
|
||||
<div id="outline-container-org2761256" class="outline-4">
|
||||
<h4 id="org2761256"><span class="section-number-4">3.2.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-3-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer </span><span style="color: #a020f0;">function</span><span style="color: #a0522d;"> </span><span style="color: #0000ff;">qmckl_ao_polynomial_vgl_f</span><span style="color: #000000; background-color: #ffffff;">(context, X, R, lmax, n, L, ldl, VGL, ldv) result(info)</span>
|
||||
@ -1939,16 +1947,16 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c6823a" class="outline-4">
|
||||
<h4 id="org2c6823a"><span class="section-number-4">3.2.4</span> C interface</h4>
|
||||
<div id="outline-container-orgefb6392" class="outline-4">
|
||||
<h4 id="orgefb6392"><span class="section-number-4">3.2.4</span> C interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbfb30f7" class="outline-4">
|
||||
<h4 id="orgbfb30f7"><span class="section-number-4">3.2.5</span> Fortran interface</h4>
|
||||
<div id="outline-container-orgc5aa119" class="outline-4">
|
||||
<h4 id="orgc5aa119"><span class="section-number-4">3.2.5</span> Fortran interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbab8d63" class="outline-4">
|
||||
<h4 id="orgbab8d63"><span class="section-number-4">3.2.6</span> Test</h4>
|
||||
<div id="outline-container-org8843548" class="outline-4">
|
||||
<h4 id="org8843548"><span class="section-number-4">3.2.6</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-2-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span>(<span style="color: #008b8b;">c_int32_t</span>) <span style="color: #a020f0;">function</span> <span style="color: #0000ff;">test_qmckl_ao_polynomial_vgl</span>(context) <span style="color: #a020f0;">bind</span>(C)
|
||||
@ -2053,13 +2061,13 @@ assert(0 == test_qmckl_ao_polynomial_vgl(context));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb64226e" class="outline-2">
|
||||
<h2 id="orgb64226e"><span class="section-number-2">4</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-org8f91712" class="outline-2">
|
||||
<h2 id="org8f91712"><span class="section-number-2">4</span> Combining radial and polynomial parts</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 17:10</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 23:26</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-07-07 Wed 17:10 -->
|
||||
<!-- 2021-07-07 Wed 23:26 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Context</title>
|
||||
@ -311,21 +311,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orge8a0aa7">1. Context handling</a>
|
||||
<li><a href="#org5c1f69c">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#org58fdc0c">1.1. Data structure</a></li>
|
||||
<li><a href="#orge13afe8">1.2. Creation</a></li>
|
||||
<li><a href="#org8c7a39c">1.3. Locking</a></li>
|
||||
<li><a href="#org125138c">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org53aae0a">1.5. Destroy</a></li>
|
||||
<li><a href="#org34498a8">1.1. Data structure</a></li>
|
||||
<li><a href="#orge3469d0">1.2. Creation</a></li>
|
||||
<li><a href="#orgd3dab72">1.3. Locking</a></li>
|
||||
<li><a href="#org901024e">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org621f6de">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge8a0aa7" class="outline-2">
|
||||
<h2 id="orge8a0aa7"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org5c1f69c" class="outline-2">
|
||||
<h2 id="org5c1f69c"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The context variable is a handle for the state of the library,
|
||||
@ -338,7 +338,7 @@ A value of <code>QMCKL_NULL_CONTEXT</code> for the context is equivalent to a
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org55bad3d"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int64_t</span> <span style="color: #228b22;">qmckl_context</span> ;
|
||||
<pre class="src src-c" id="orgde2efcb"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int64_t</span> <span style="color: #228b22;">qmckl_context</span> ;
|
||||
<span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">QMCKL_NULL_CONTEXT</span> (qmckl_context) 0
|
||||
</pre>
|
||||
</div>
|
||||
@ -356,8 +356,8 @@ and <code>ctx</code> is a <code>qmckl_context_struct*</code> pointer.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org58fdc0c" class="outline-3">
|
||||
<h3 id="org58fdc0c"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org34498a8" class="outline-3">
|
||||
<h3 id="org34498a8"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
The context keeps a ``date'' that allows to check which data needs
|
||||
@ -367,7 +367,7 @@ coordinates are updated.
|
||||
|
||||
<p>
|
||||
When a new element is added to the context, the functions
|
||||
<a href="#orge13afe8">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#org53aae0a">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#org125138c">qmckl<sub>context</sub><sub>copy</sub></a>
|
||||
<a href="#orge3469d0">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#org621f6de">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#org901024e">qmckl<sub>context</sub><sub>copy</sub></a>
|
||||
should be updated inorder to make deep copies.
|
||||
</p>
|
||||
|
||||
@ -416,8 +416,8 @@ if the context is valid, <code>QMCKL_NULL_CONTEXT</code> otherwise.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge13afe8" class="outline-3">
|
||||
<h3 id="orge13afe8"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-orge3469d0" class="outline-3">
|
||||
<h3 id="orge3469d0"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
@ -502,8 +502,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org8c7a39c" class="outline-3">
|
||||
<h3 id="org8c7a39c"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-orgd3dab72" class="outline-3">
|
||||
<h3 id="orgd3dab72"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
For thread safety, the context may be locked/unlocked. The lock is
|
||||
@ -548,8 +548,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org125138c" class="outline-3">
|
||||
<h3 id="org125138c"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-org901024e" class="outline-3">
|
||||
<h3 id="org901024e"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
<code>qmckl_context_copy</code> makes a deep copy of a context. It returns
|
||||
@ -597,8 +597,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org53aae0a" class="outline-3">
|
||||
<h3 id="org53aae0a"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org621f6de" class="outline-3">
|
||||
<h3 id="org621f6de"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
The context is destroyed with <code>qmckl_context_destroy</code>, leaving the ancestors untouched.
|
||||
@ -652,7 +652,7 @@ It frees the context, and returns the previous context.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 17:10</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 23:26</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-07-07 Wed 17:10 -->
|
||||
<!-- 2021-07-07 Wed 23:26 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Inter-particle distances</title>
|
||||
@ -333,50 +333,50 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgaf8fceb">1. Squared distance</a>
|
||||
<li><a href="#org59a97f6">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#orgb6acaed">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#orgb5b9a08">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#orga187e9f">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org7f95a58">1.1.2. C header</a></li>
|
||||
<li><a href="#org7ab84e0">1.1.3. Source</a></li>
|
||||
<li><a href="#org7856068">1.1.4. Performance</a></li>
|
||||
<li><a href="#org506979e">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org67a3921">1.1.2. C header</a></li>
|
||||
<li><a href="#orgc418280">1.1.3. Source</a></li>
|
||||
<li><a href="#org98e1ac3">1.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgfc98ceb">2. Distance</a>
|
||||
<li><a href="#orgf8cc6ad">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org008f58d">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#org5cf5292">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgbce3986">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgc68a121">2.1.2. C header</a></li>
|
||||
<li><a href="#org0a144e7">2.1.3. Source</a></li>
|
||||
<li><a href="#orgd2f5041">2.1.4. Performance</a></li>
|
||||
<li><a href="#org5c35bd7">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgbadd8fc">2.1.2. C header</a></li>
|
||||
<li><a href="#org6cb262d">2.1.3. Source</a></li>
|
||||
<li><a href="#org0d43905">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb98de14">3. Rescaled Distance</a>
|
||||
<li><a href="#org0f643ac">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#orgd39dcfb">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#orgdc87606">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#orga04b5f0">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org707f868">3.1.2. C header</a></li>
|
||||
<li><a href="#orgbd4cab6">3.1.3. Source</a></li>
|
||||
<li><a href="#org6cdf7ba">3.1.4. Performance</a></li>
|
||||
<li><a href="#org6492093">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orge254e26">3.1.2. C header</a></li>
|
||||
<li><a href="#org06f9f1a">3.1.3. Source</a></li>
|
||||
<li><a href="#org3d30cfd">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcc968c1">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#org1af270f">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#orga36ae37">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a>
|
||||
<li><a href="#orgd1c4607">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgd328a6e">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org4b2570c">4.1.2. C header</a></li>
|
||||
<li><a href="#org0fbe523">4.1.3. Source</a></li>
|
||||
<li><a href="#orgc4381c3">4.1.4. Performance</a></li>
|
||||
<li><a href="#org69881a5">4.1.1. Requirements</a></li>
|
||||
<li><a href="#orge10b528">4.1.2. C header</a></li>
|
||||
<li><a href="#org15fcad3">4.1.3. Source</a></li>
|
||||
<li><a href="#orgad1f976">4.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -385,12 +385,12 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaf8fceb" class="outline-2">
|
||||
<h2 id="orgaf8fceb"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org59a97f6" class="outline-2">
|
||||
<h2 id="org59a97f6"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orgb6acaed" class="outline-3">
|
||||
<h3 id="orgb6acaed"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-orgb5b9a08" class="outline-3">
|
||||
<h3 id="orgb5b9a08"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
<code>qmckl_distance_sq</code> computes the matrix of the squared distances
|
||||
@ -403,7 +403,7 @@ between all pairs of points in two sets, one point within each set:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orgd534478" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org780a002" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -496,8 +496,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga187e9f" class="outline-4">
|
||||
<h4 id="orga187e9f"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org506979e" class="outline-4">
|
||||
<h4 id="org506979e"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -515,8 +515,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7f95a58" class="outline-4">
|
||||
<h4 id="org7f95a58"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div id="outline-container-org67a3921" class="outline-4">
|
||||
<h4 id="org67a3921"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-1-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled_deriv_e</span> (
|
||||
@ -536,8 +536,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7ab84e0" class="outline-4">
|
||||
<h4 id="org7ab84e0"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgc418280" class="outline-4">
|
||||
<h4 id="orgc418280"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-1-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_sq_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -672,8 +672,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7856068" class="outline-4">
|
||||
<h4 id="org7856068"><span class="section-number-4">1.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org98e1ac3" class="outline-4">
|
||||
<h4 id="org98e1ac3"><span class="section-number-4">1.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-1-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are
|
||||
@ -683,12 +683,12 @@ transposed.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgfc98ceb" class="outline-2">
|
||||
<h2 id="orgfc98ceb"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-orgf8cc6ad" class="outline-2">
|
||||
<h2 id="orgf8cc6ad"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org008f58d" class="outline-3">
|
||||
<h3 id="org008f58d"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-org5cf5292" class="outline-3">
|
||||
<h3 id="org5cf5292"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
<code>qmckl_distance</code> computes the matrix of the distances between all
|
||||
@ -706,7 +706,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="orgc4b7173" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org804f0a2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -799,8 +799,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbce3986" class="outline-4">
|
||||
<h4 id="orgbce3986"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org5c35bd7" class="outline-4">
|
||||
<h4 id="org5c35bd7"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -818,8 +818,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc68a121" class="outline-4">
|
||||
<h4 id="orgc68a121"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgbadd8fc" class="outline-4">
|
||||
<h4 id="orgbadd8fc"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled_deriv_e</span> (
|
||||
@ -839,8 +839,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a144e7" class="outline-4">
|
||||
<h4 id="org0a144e7"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-org6cb262d" class="outline-4">
|
||||
<h4 id="org6cb262d"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -1007,8 +1007,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd2f5041" class="outline-4">
|
||||
<h4 id="orgd2f5041"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org0d43905" class="outline-4">
|
||||
<h4 id="org0d43905"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1018,12 +1018,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb98de14" class="outline-2">
|
||||
<h2 id="orgb98de14"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org0f643ac" class="outline-2">
|
||||
<h2 id="org0f643ac"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgd39dcfb" class="outline-3">
|
||||
<h3 id="orgd39dcfb"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-orgdc87606" class="outline-3">
|
||||
<h3 id="orgdc87606"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled</code> computes the matrix of the rescaled distances between all
|
||||
@ -1041,7 +1041,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="org68cbf61" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3f3bf73" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1141,8 +1141,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga04b5f0" class="outline-4">
|
||||
<h4 id="orga04b5f0"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org6492093" class="outline-4">
|
||||
<h4 id="org6492093"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1160,8 +1160,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org707f868" class="outline-4">
|
||||
<h4 id="org707f868"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-orge254e26" class="outline-4">
|
||||
<h4 id="orge254e26"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled_deriv_e</span> (
|
||||
@ -1182,8 +1182,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd4cab6" class="outline-4">
|
||||
<h4 id="orgbd4cab6"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-org06f9f1a" class="outline-4">
|
||||
<h4 id="org06f9f1a"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_rescaled_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -1353,8 +1353,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6cdf7ba" class="outline-4">
|
||||
<h4 id="org6cdf7ba"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org3d30cfd" class="outline-4">
|
||||
<h4 id="org3d30cfd"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-3-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1363,12 +1363,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgcc968c1" class="outline-2">
|
||||
<h2 id="orgcc968c1"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-org1af270f" class="outline-2">
|
||||
<h2 id="org1af270f"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orga36ae37" class="outline-3">
|
||||
<h3 id="orga36ae37"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div id="outline-container-orgd1c4607" class="outline-3">
|
||||
<h3 id="orgd1c4607"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled_deriv_e</code> computes the matrix of the gradient and laplacian of the
|
||||
@ -1435,7 +1435,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="org0aee420" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc9bc377" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1535,8 +1535,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd328a6e" class="outline-4">
|
||||
<h4 id="orgd328a6e"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org69881a5" class="outline-4">
|
||||
<h4 id="org69881a5"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-4-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1554,8 +1554,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4b2570c" class="outline-4">
|
||||
<h4 id="org4b2570c"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div id="outline-container-orge10b528" class="outline-4">
|
||||
<h4 id="orge10b528"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-4-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled_deriv_e</span> (
|
||||
@ -1576,8 +1576,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0fbe523" class="outline-4">
|
||||
<h4 id="org0fbe523"><span class="section-number-4">4.1.3</span> Source</h4>
|
||||
<div id="outline-container-org15fcad3" class="outline-4">
|
||||
<h4 id="org15fcad3"><span class="section-number-4">4.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-4-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_rescaled_deriv_e_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -1768,8 +1768,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc4381c3" class="outline-4">
|
||||
<h4 id="orgc4381c3"><span class="section-number-4">4.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgad1f976" class="outline-4">
|
||||
<h4 id="orgad1f976"><span class="section-number-4">4.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-4-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1781,7 +1781,7 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 17:10</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 23:26</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-07-07 Wed 17:10 -->
|
||||
<!-- 2021-07-07 Wed 23:26 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Electrons</title>
|
||||
@ -333,63 +333,63 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgb023321">1. Context</a>
|
||||
<li><a href="#org15bc3a9">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgcb323fb">1.1. Data structure</a></li>
|
||||
<li><a href="#org1abb7e9">1.2. Access functions</a>
|
||||
<li><a href="#org3b5a57b">1.1. Data structure</a></li>
|
||||
<li><a href="#orgdbaa24b">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgd78559a">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#org2a8b305">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#orgd2f236a">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#org369ff64">1.2.4. Electron coordinates</a></li>
|
||||
<li><a href="#org1f63ade">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#org1ea0be5">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#org12bae54">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#org8fc1574">1.2.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2d9db59">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgf28e003">1.4. Test</a></li>
|
||||
<li><a href="#orgeb4d1cb">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org62a2215">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org16909cb">2. Computation</a>
|
||||
<li><a href="#org2c234e6">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgdd41bea">2.1. Electron-electron distances</a>
|
||||
<li><a href="#orgd9bbec7">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#org5d1f5e0">2.1.1. Get</a></li>
|
||||
<li><a href="#org71f5a99">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgd0507cb">2.1.3. Test</a></li>
|
||||
<li><a href="#org37f7978">2.1.1. Get</a></li>
|
||||
<li><a href="#org3a0f226">2.1.2. Compute</a></li>
|
||||
<li><a href="#org9b823cf">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6248fc1">2.2. Electron-electron rescaled distances</a>
|
||||
<li><a href="#orgafcee98">2.2. Electron-electron rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#org4d2a3eb">2.2.1. Get</a></li>
|
||||
<li><a href="#org27eb1b0">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgf1e1dc5">2.2.3. Test</a></li>
|
||||
<li><a href="#org10ce374">2.2.1. Get</a></li>
|
||||
<li><a href="#org1cc4c87">2.2.2. Compute</a></li>
|
||||
<li><a href="#orge98ef64">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org32aefea">2.3. Electron-electron rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<li><a href="#org42f35e6">2.3. Electron-electron rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#orgf19bb90">2.3.1. Get</a></li>
|
||||
<li><a href="#org51de1fb">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgaf29773">2.3.3. Test</a></li>
|
||||
<li><a href="#orge5aaed0">2.3.1. Get</a></li>
|
||||
<li><a href="#org5a75963">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgc6f1d51">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8058e93">2.4. Electron-nucleus distances</a>
|
||||
<li><a href="#org5f81cb1">2.4. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org692ba17">2.4.1. Get</a></li>
|
||||
<li><a href="#org56b296a">2.4.2. Compute</a></li>
|
||||
<li><a href="#org5be6c52">2.4.3. Test</a></li>
|
||||
<li><a href="#org7cfd703">2.4.1. Get</a></li>
|
||||
<li><a href="#org171cbc1">2.4.2. Compute</a></li>
|
||||
<li><a href="#org22fd589">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc04de32">2.5. Electron-nucleus rescaled distances</a>
|
||||
<li><a href="#org8f8f802">2.5. Electron-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#org5288daa">2.5.1. Get</a></li>
|
||||
<li><a href="#org5152031">2.5.2. Compute</a></li>
|
||||
<li><a href="#org74c722f">2.5.3. Test</a></li>
|
||||
<li><a href="#orge77ad34">2.5.1. Get</a></li>
|
||||
<li><a href="#orgc42fda1">2.5.2. Compute</a></li>
|
||||
<li><a href="#orgb7b7d19">2.5.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb3ade27">2.6. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<li><a href="#org0bf4046">2.6. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#org41a3de4">2.6.1. Get</a></li>
|
||||
<li><a href="#orgf564e5e">2.6.2. Compute</a></li>
|
||||
<li><a href="#orgb945364">2.6.3. Test</a></li>
|
||||
<li><a href="#org85f2bd4">2.6.1. Get</a></li>
|
||||
<li><a href="#org97e3e99">2.6.2. Compute</a></li>
|
||||
<li><a href="#org85e2fb5">2.6.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -398,8 +398,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb023321" class="outline-2">
|
||||
<h2 id="orgb023321"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org15bc3a9" class="outline-2">
|
||||
<h2 id="org15bc3a9"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -558,8 +558,8 @@ The following data stored in the context:
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgcb323fb" class="outline-3">
|
||||
<h3 id="orgcb323fb"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org3b5a57b" class="outline-3">
|
||||
<h3 id="org3b5a57b"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_electron_struct</span> {
|
||||
@ -634,8 +634,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1abb7e9" class="outline-3">
|
||||
<h3 id="org1abb7e9"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgdbaa24b" class="outline-3">
|
||||
<h3 id="orgdbaa24b"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||
@ -647,12 +647,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd78559a" class="outline-4">
|
||||
<h4 id="orgd78559a"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-org1f63ade" class="outline-4">
|
||||
<h4 id="org1f63ade"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2a8b305" class="outline-4">
|
||||
<h4 id="org2a8b305"><span class="section-number-4">1.2.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-org1ea0be5" class="outline-4">
|
||||
<h4 id="org1ea0be5"><span class="section-number-4">1.2.2</span> Number of walkers</h4>
|
||||
<div class="outline-text-4" id="text-1-2-2">
|
||||
<p>
|
||||
A walker is a set of electron coordinates that are arguments of
|
||||
@ -661,12 +661,12 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd2f236a" class="outline-4">
|
||||
<h4 id="orgd2f236a"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
<div id="outline-container-org12bae54" class="outline-4">
|
||||
<h4 id="org12bae54"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org369ff64" class="outline-4">
|
||||
<h4 id="org369ff64"><span class="section-number-4">1.2.4</span> Electron coordinates</h4>
|
||||
<div id="outline-container-org8fc1574" class="outline-4">
|
||||
<h4 id="org8fc1574"><span class="section-number-4">1.2.4</span> Electron coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-2-4">
|
||||
<p>
|
||||
Returns the current electron coordinates. The pointer is assumed
|
||||
@ -710,8 +710,8 @@ The order of the indices is:
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org2d9db59" class="outline-3">
|
||||
<h3 id="org2d9db59"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgeb4d1cb" class="outline-3">
|
||||
<h3 id="orgeb4d1cb"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the data relative to the electrons in the context, the
|
||||
@ -798,8 +798,8 @@ in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf28e003" class="outline-3">
|
||||
<h3 id="orgf28e003"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org62a2215" class="outline-3">
|
||||
<h3 id="org62a2215"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -905,8 +905,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org16909cb" class="outline-2">
|
||||
<h2 id="org16909cb"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org2c234e6" class="outline-2">
|
||||
<h2 id="org2c234e6"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The computed data is stored in the context so that it can be reused
|
||||
@ -919,12 +919,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdd41bea" class="outline-3">
|
||||
<h3 id="orgdd41bea"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-orgd9bbec7" class="outline-3">
|
||||
<h3 id="orgd9bbec7"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
<div id="outline-container-org5d1f5e0" class="outline-4">
|
||||
<h4 id="org5d1f5e0"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org37f7978" class="outline-4">
|
||||
<h4 id="org37f7978"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance</span>);
|
||||
@ -933,10 +933,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org71f5a99" class="outline-4">
|
||||
<h4 id="org71f5a99"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org3a0f226" class="outline-4">
|
||||
<h4 id="org3a0f226"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgaf91d43" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2bcffcc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1032,8 +1032,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd0507cb" class="outline-4">
|
||||
<h4 id="orgd0507cb"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org9b823cf" class="outline-4">
|
||||
<h4 id="org9b823cf"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -1067,8 +1067,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6248fc1" class="outline-3">
|
||||
<h3 id="org6248fc1"><span class="section-number-3">2.2</span> Electron-electron rescaled distances</h3>
|
||||
<div id="outline-container-orgafcee98" class="outline-3">
|
||||
<h3 id="orgafcee98"><span class="section-number-3">2.2</span> Electron-electron rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
<code>ee_distance_rescaled</code> stores the matrix of the rescaled distances between all
|
||||
@ -1086,8 +1086,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4d2a3eb" class="outline-4">
|
||||
<h4 id="org4d2a3eb"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org10ce374" class="outline-4">
|
||||
<h4 id="org10ce374"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance_rescaled</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance_rescaled</span>);
|
||||
@ -1096,10 +1096,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org27eb1b0" class="outline-4">
|
||||
<h4 id="org27eb1b0"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org1cc4c87" class="outline-4">
|
||||
<h4 id="org1cc4c87"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgf9a720e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org97eba3c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1204,8 +1204,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf1e1dc5" class="outline-4">
|
||||
<h4 id="orgf1e1dc5"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orge98ef64" class="outline-4">
|
||||
<h4 id="orge98ef64"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -1239,8 +1239,8 @@ rc = qmckl_get_electron_ee_distance_rescaled(context, ee_distance_rescaled);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org32aefea" class="outline-3">
|
||||
<h3 id="org32aefea"><span class="section-number-3">2.3</span> Electron-electron rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div id="outline-container-org42f35e6" class="outline-3">
|
||||
<h3 id="org42f35e6"><span class="section-number-3">2.3</span> Electron-electron rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
The rescaled distances which is given as \(R = (1 - \exp{-\kappa r})/\kappa\)
|
||||
@ -1252,8 +1252,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf19bb90" class="outline-4">
|
||||
<h4 id="orgf19bb90"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-orge5aaed0" class="outline-4">
|
||||
<h4 id="orge5aaed0"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance_rescaled_deriv_e</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance_rescaled_deriv_e</span>);
|
||||
@ -1262,10 +1262,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org51de1fb" class="outline-4">
|
||||
<h4 id="org51de1fb"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org5a75963" class="outline-4">
|
||||
<h4 id="org5a75963"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="orgc63790b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org99aef14" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1370,8 +1370,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaf29773" class="outline-4">
|
||||
<h4 id="orgaf29773"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-orgc6f1d51" class="outline-4">
|
||||
<h4 id="orgc6f1d51"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -1407,12 +1407,12 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org8058e93" class="outline-3">
|
||||
<h3 id="org8058e93"><span class="section-number-3">2.4</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-org5f81cb1" class="outline-3">
|
||||
<h3 id="org5f81cb1"><span class="section-number-3">2.4</span> Electron-nucleus distances</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
</div>
|
||||
<div id="outline-container-org692ba17" class="outline-4">
|
||||
<h4 id="org692ba17"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org7cfd703" class="outline-4">
|
||||
<h4 id="org7cfd703"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance</span>);
|
||||
@ -1421,10 +1421,10 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org56b296a" class="outline-4">
|
||||
<h4 id="org56b296a"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-org171cbc1" class="outline-4">
|
||||
<h4 id="org171cbc1"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org587956d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9d515cd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1541,8 +1541,8 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5be6c52" class="outline-4">
|
||||
<h4 id="org5be6c52"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org22fd589" class="outline-4">
|
||||
<h4 id="org22fd589"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -1590,8 +1590,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc04de32" class="outline-3">
|
||||
<h3 id="orgc04de32"><span class="section-number-3">2.5</span> Electron-nucleus rescaled distances</h3>
|
||||
<div id="outline-container-org8f8f802" class="outline-3">
|
||||
<h3 id="org8f8f802"><span class="section-number-3">2.5</span> Electron-nucleus rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
<code>en_distance_rescaled</code> stores the matrix of the rescaled distances between
|
||||
@ -1609,8 +1609,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5288daa" class="outline-4">
|
||||
<h4 id="org5288daa"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div id="outline-container-orge77ad34" class="outline-4">
|
||||
<h4 id="orge77ad34"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance_rescaled</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance_rescaled</span>);
|
||||
@ -1619,10 +1619,10 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5152031" class="outline-4">
|
||||
<h4 id="org5152031"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div id="outline-container-orgc42fda1" class="outline-4">
|
||||
<h4 id="orgc42fda1"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-2">
|
||||
<table id="org3097434" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org94a17b9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1754,8 +1754,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org74c722f" class="outline-4">
|
||||
<h4 id="org74c722f"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div id="outline-container-orgb7b7d19" class="outline-4">
|
||||
<h4 id="orgb7b7d19"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-5-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -1803,8 +1803,8 @@ rc = qmckl_get_electron_en_distance_rescaled(context, &(en_distance_rescaled
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb3ade27" class="outline-3">
|
||||
<h3 id="orgb3ade27"><span class="section-number-3">2.6</span> Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div id="outline-container-org0bf4046" class="outline-3">
|
||||
<h3 id="org0bf4046"><span class="section-number-3">2.6</span> Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
The rescaled distances which is given as \(R = (1 - \exp{-\kappa r})/\kappa\)
|
||||
@ -1816,8 +1816,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org41a3de4" class="outline-4">
|
||||
<h4 id="org41a3de4"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div id="outline-container-org85f2bd4" class="outline-4">
|
||||
<h4 id="org85f2bd4"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-6-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance_rescaled_deriv_e</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance_rescaled_deriv_e</span>);
|
||||
@ -1826,10 +1826,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf564e5e" class="outline-4">
|
||||
<h4 id="orgf564e5e"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div id="outline-container-org97e3e99" class="outline-4">
|
||||
<h4 id="org97e3e99"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-6-2">
|
||||
<table id="org1cdab10" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb7ab50b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1962,8 +1962,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb945364" class="outline-4">
|
||||
<h4 id="orgb945364"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div id="outline-container-org85e2fb5" class="outline-4">
|
||||
<h4 id="org85e2fb5"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-6-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -2018,7 +2018,7 @@ rc = qmckl_get_electron_en_distance_rescaled_deriv_e(context, &(en_distance_
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 17:10</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 23:26</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-07-07 Wed 17:10 -->
|
||||
<!-- 2021-07-07 Wed 23:26 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Error handling</title>
|
||||
@ -311,17 +311,17 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgce8d124">1. Decoding errors</a></li>
|
||||
<li><a href="#org331acc8">2. Data structure in context</a></li>
|
||||
<li><a href="#org4e945aa">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgd4c8e25">4. Get the error</a></li>
|
||||
<li><a href="#org6af8277">5. Failing</a></li>
|
||||
<li><a href="#orgc349a53">1. Decoding errors</a></li>
|
||||
<li><a href="#orgc6f9384">2. Data structure in context</a></li>
|
||||
<li><a href="#org0354c24">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org0133b92">4. Get the error</a></li>
|
||||
<li><a href="#orgc7a0a20">5. Failing</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgce8d124" class="outline-2">
|
||||
<h2 id="orgce8d124"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-orgc349a53" class="outline-2">
|
||||
<h2 id="orgc349a53"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
To decode the error messages, <code>qmckl_string_of_error</code> converts an
|
||||
@ -451,8 +451,8 @@ The text strings are extracted from the previous table.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org331acc8" class="outline-2">
|
||||
<h2 id="org331acc8"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-orgc6f9384" class="outline-2">
|
||||
<h2 id="orgc6f9384"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The strings are declared with a maximum fixed size to avoid
|
||||
@ -475,8 +475,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4e945aa" class="outline-2">
|
||||
<h2 id="org4e945aa"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-org0354c24" class="outline-2">
|
||||
<h2 id="org0354c24"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
The error is updated in the context using <code>qmckl_set_error</code>.
|
||||
@ -522,8 +522,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd4c8e25" class="outline-2">
|
||||
<h2 id="orgd4c8e25"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-org0133b92" class="outline-2">
|
||||
<h2 id="org0133b92"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
Upon error, the error type and message can be obtained from the
|
||||
@ -564,8 +564,8 @@ function name and message is mandatory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6af8277" class="outline-2">
|
||||
<h2 id="org6af8277"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-orgc7a0a20" class="outline-2">
|
||||
<h2 id="orgc7a0a20"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
<p>
|
||||
To make a function fail, the <code>qmckl_failwith</code> function should be
|
||||
@ -628,7 +628,7 @@ For example, this function can be used as
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 17:10</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 23:26</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-07-07 Wed 17:10 -->
|
||||
<!-- 2021-07-07 Wed 23:26 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Memory management</title>
|
||||
@ -311,15 +311,15 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org9375e16">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org9d130c3">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org22ac967">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orge816dda">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org5e546cb">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org8f52e6e">3. Allocation/deallocation functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9375e16" class="outline-2">
|
||||
<h2 id="org9375e16"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-orge816dda" class="outline-2">
|
||||
<h2 id="orge816dda"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Every time a new block of memory is allocated, the information
|
||||
@ -361,8 +361,8 @@ array, and the number of allocated blocks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9d130c3" class="outline-2">
|
||||
<h2 id="org9d130c3"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org5e546cb" class="outline-2">
|
||||
<h2 id="org5e546cb"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
Passing information to the allocation routine should be done by
|
||||
@ -371,8 +371,8 @@ passing an instance of a <code>qmckl_memory_info_struct</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org22ac967" class="outline-2">
|
||||
<h2 id="org22ac967"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-org8f52e6e" class="outline-2">
|
||||
<h2 id="org8f52e6e"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
Memory allocation inside the library should be done with
|
||||
@ -535,7 +535,7 @@ allocation and needs to be updated.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 17:10</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 23:26</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-07-07 Wed 17:10 -->
|
||||
<!-- 2021-07-07 Wed 23:26 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Nucleus</title>
|
||||
@ -333,35 +333,35 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org66928c1">1. Context</a>
|
||||
<li><a href="#org03c468c">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org8d9c113">1.1. Data structure</a></li>
|
||||
<li><a href="#org4827ed0">1.2. Access functions</a></li>
|
||||
<li><a href="#org7811a4a">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgacb1f50">1.4. Test</a></li>
|
||||
<li><a href="#org892621b">1.1. Data structure</a></li>
|
||||
<li><a href="#org550b5d7">1.2. Access functions</a></li>
|
||||
<li><a href="#orgbc25f3e">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org23830d2">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgaf307b0">2. Computation</a>
|
||||
<li><a href="#org76c4266">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org8927ecd">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#orgdb5dc4c">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org84d3078">2.1.1. Get</a></li>
|
||||
<li><a href="#org979d279">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgdf3a3ae">2.1.3. Test</a></li>
|
||||
<li><a href="#org4c6e70a">2.1.1. Get</a></li>
|
||||
<li><a href="#org7c92e01">2.1.2. Compute</a></li>
|
||||
<li><a href="#orga105afd">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb7dd890">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<li><a href="#org262f188">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#org620b4f1">2.2.1. Get</a></li>
|
||||
<li><a href="#org7aaa406">2.2.2. Compute</a></li>
|
||||
<li><a href="#org3cad9ef">2.2.3. Test</a></li>
|
||||
<li><a href="#org6dc7c76">2.2.1. Get</a></li>
|
||||
<li><a href="#org68b049b">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgc39ced2">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgff14585">2.3. Nuclear repulsion energy</a>
|
||||
<li><a href="#org27ca654">2.3. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#orge366964">2.3.1. Get</a></li>
|
||||
<li><a href="#org6f6869d">2.3.2. Compute</a></li>
|
||||
<li><a href="#org36854e1">2.3.3. Test</a></li>
|
||||
<li><a href="#org8e6b005">2.3.1. Get</a></li>
|
||||
<li><a href="#org36a5627">2.3.2. Compute</a></li>
|
||||
<li><a href="#org214d6d1">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -370,8 +370,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org66928c1" class="outline-2">
|
||||
<h2 id="org66928c1"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org03c468c" class="outline-2">
|
||||
<h2 id="org03c468c"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -463,8 +463,8 @@ The following data stored in the context:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8d9c113" class="outline-3">
|
||||
<h3 id="org8d9c113"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org892621b" class="outline-3">
|
||||
<h3 id="org892621b"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_nucleus_struct</span> {
|
||||
@ -523,8 +523,8 @@ this mechanism.
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-org4827ed0" class="outline-3">
|
||||
<h3 id="org4827ed0"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org550b5d7" class="outline-3">
|
||||
<h3 id="org550b5d7"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data relative to nuclei have been set, the following
|
||||
@ -538,8 +538,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7811a4a" class="outline-3">
|
||||
<h3 id="org7811a4a"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgbc25f3e" class="outline-3">
|
||||
<h3 id="orgbc25f3e"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the data relative to the nuclei in the context, the
|
||||
@ -574,8 +574,8 @@ atoms. The coordinates should be given in atomic units.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgacb1f50" class="outline-3">
|
||||
<h3 id="orgacb1f50"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org23830d2" class="outline-3">
|
||||
<h3 id="org23830d2"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nucl_num</span> = chbrclf_nucl_num;
|
||||
@ -659,8 +659,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaf307b0" class="outline-2">
|
||||
<h2 id="orgaf307b0"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org76c4266" class="outline-2">
|
||||
<h2 id="org76c4266"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The computed data is stored in the context so that it can be reused
|
||||
@ -673,12 +673,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8927ecd" class="outline-3">
|
||||
<h3 id="org8927ecd"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-orgdb5dc4c" class="outline-3">
|
||||
<h3 id="orgdb5dc4c"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
<div id="outline-container-org84d3078" class="outline-4">
|
||||
<h4 id="org84d3078"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org4c6e70a" class="outline-4">
|
||||
<h4 id="org4c6e70a"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_nn_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance</span>);
|
||||
@ -687,10 +687,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org979d279" class="outline-4">
|
||||
<h4 id="org979d279"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org7c92e01" class="outline-4">
|
||||
<h4 id="org7c92e01"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgbf4fa44" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga2023d7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -768,8 +768,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdf3a3ae" class="outline-4">
|
||||
<h4 id="orgdf3a3ae"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orga105afd" class="outline-4">
|
||||
<h4 id="orga105afd"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -789,12 +789,12 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgb7dd890" class="outline-3">
|
||||
<h3 id="orgb7dd890"><span class="section-number-3">2.2</span> Nucleus-nucleus rescaled distances</h3>
|
||||
<div id="outline-container-org262f188" class="outline-3">
|
||||
<h3 id="org262f188"><span class="section-number-3">2.2</span> Nucleus-nucleus rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div id="outline-container-org620b4f1" class="outline-4">
|
||||
<h4 id="org620b4f1"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org6dc7c76" class="outline-4">
|
||||
<h4 id="org6dc7c76"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_nn_distance_rescaled</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance_rescaled</span>);
|
||||
@ -803,10 +803,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7aaa406" class="outline-4">
|
||||
<h4 id="org7aaa406"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org68b049b" class="outline-4">
|
||||
<h4 id="org68b049b"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org50b3bb7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org096beab" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -885,8 +885,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3cad9ef" class="outline-4">
|
||||
<h4 id="org3cad9ef"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgc39ced2" class="outline-4">
|
||||
<h4 id="orgc39ced2"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -906,8 +906,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgff14585" class="outline-3">
|
||||
<h3 id="orgff14585"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-org27ca654" class="outline-3">
|
||||
<h3 id="org27ca654"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
\[
|
||||
@ -916,8 +916,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge366964" class="outline-4">
|
||||
<h4 id="orge366964"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org8e6b005" class="outline-4">
|
||||
<h4 id="org8e6b005"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_repulsion</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">energy</span>);
|
||||
@ -926,10 +926,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6f6869d" class="outline-4">
|
||||
<h4 id="org6f6869d"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org36a5627" class="outline-4">
|
||||
<h4 id="org36a5627"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="orga6f19e5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfe784a7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1017,8 +1017,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org36854e1" class="outline-4">
|
||||
<h4 id="org36854e1"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org214d6d1" class="outline-4">
|
||||
<h4 id="org214d6d1"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -1038,7 +1038,7 @@ rc = qmckl_get_nucleus_repulsion(context, &rep);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 17:10</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 23:26</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-07-07 Wed 17:10 -->
|
||||
<!-- 2021-07-07 Wed 23:26 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Numerical precision</title>
|
||||
@ -333,16 +333,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgd3877ec">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org68b6613">2. Precision</a></li>
|
||||
<li><a href="#org5a769a1">3. Range</a></li>
|
||||
<li><a href="#orgd365108">4. Helper functions</a></li>
|
||||
<li><a href="#orgd6956d4">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org90b268f">2. Precision</a></li>
|
||||
<li><a href="#orgddb4f16">3. Range</a></li>
|
||||
<li><a href="#orgc3881ca">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd3877ec" class="outline-2">
|
||||
<h2 id="orgd3877ec"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-orgd6956d4" class="outline-2">
|
||||
<h2 id="orgd6956d4"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Controlling numerical precision enables optimizations. Here, the
|
||||
@ -353,7 +353,7 @@ Arithmetic (IEEE 754),
|
||||
refers to the number of exponent bits.
|
||||
</p>
|
||||
|
||||
<table id="orgcc53a6d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org77c2109" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -397,8 +397,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org68b6613" class="outline-2">
|
||||
<h2 id="org68b6613"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org90b268f" class="outline-2">
|
||||
<h2 id="org90b268f"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
<code>qmckl_context_set_numprec_precision</code> modifies the parameter for the
|
||||
@ -485,8 +485,8 @@ numerical precision in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5a769a1" class="outline-2">
|
||||
<h2 id="org5a769a1"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-orgddb4f16" class="outline-2">
|
||||
<h2 id="orgddb4f16"><span class="section-number-2">3</span> Range</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
<code>qmckl_set_numprec_range</code> modifies the parameter for the numerical
|
||||
@ -561,8 +561,8 @@ range in a given context.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgd365108" class="outline-2">
|
||||
<h2 id="orgd365108"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-orgc3881ca" class="outline-2">
|
||||
<h2 id="orgc3881ca"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
<code>qmckl_get_numprec_epsilon</code> returns \(\epsilon = 2^{1-n}\) where <code>n</code> is the precision.
|
||||
@ -581,7 +581,7 @@ We need to remove the sign bit from the precision.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 17:10</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 23:26</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-07-07 Wed 17:10 -->
|
||||
<!-- 2021-07-07 Wed 23:26 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Data for Tests</title>
|
||||
@ -233,20 +233,20 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgdecccbc">1. CHBrClF</a>
|
||||
<li><a href="#org6237d12">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#org08a51cb">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org0f9fe91">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orgdbf5d0b">1.3. <span class="todo TODO">TODO</span> Molecular orbitals</a></li>
|
||||
<li><a href="#orga9c4987">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org47ddb23">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orge5ad1a7">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org607b019">1.3. <span class="todo TODO">TODO</span> Molecular orbitals</a></li>
|
||||
<li><a href="#org8d00ced">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdecccbc" class="outline-2">
|
||||
<h2 id="orgdecccbc"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org6237d12" class="outline-2">
|
||||
<h2 id="org6237d12"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
This test is the all-electron Hartree-Fock wave function of CHClBr,
|
||||
@ -330,8 +330,8 @@ and with a high maximum angular momentum.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org08a51cb" class="outline-3">
|
||||
<h3 id="org08a51cb"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org47ddb23" class="outline-3">
|
||||
<h3 id="org47ddb23"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<pre class="example">
|
||||
5
|
||||
@ -361,8 +361,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0f9fe91" class="outline-3">
|
||||
<h3 id="org0f9fe91"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-orge5ad1a7" class="outline-3">
|
||||
<h3 id="orge5ad1a7"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<pre class="example">
|
||||
HYDROGEN
|
||||
@ -1175,11 +1175,11 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdbf5d0b" class="outline-3">
|
||||
<h3 id="orgdbf5d0b"><span class="section-number-3">1.3</span> <span class="todo TODO">TODO</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org607b019" class="outline-3">
|
||||
<h3 id="org607b019"><span class="section-number-3">1.3</span> <span class="todo TODO">TODO</span> Molecular orbitals</h3>
|
||||
</div>
|
||||
<div id="outline-container-orga9c4987" class="outline-3">
|
||||
<h3 id="orga9c4987"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org8d00ced" class="outline-3">
|
||||
<h3 id="org8d00ced"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Electron coordinates are stored in atomic units in normal format.
|
||||
@ -1339,7 +1339,7 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="date">Created: 2021-07-07 Wed 17:10</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 23:26</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-07-07 Wed 17:10 -->
|
||||
<!-- 2021-07-07 Wed 23:26 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Utility functions</title>
|
||||
@ -333,13 +333,13 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc6bac21">1. Matrix operations</a>
|
||||
<li><a href="#org13ae9b6">1. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org0a35bc2">1.1. <code>qmckl_transpose</code></a>
|
||||
<li><a href="#org5c8c5e1">1.1. <code>qmckl_transpose</code></a>
|
||||
<ul>
|
||||
<li><a href="#org62d511b">1.1.1. Requirements</a></li>
|
||||
<li><a href="#orgc308d9c">1.1.2. C header</a></li>
|
||||
<li><a href="#org9869807">1.1.3. Source</a></li>
|
||||
<li><a href="#orgb9652cb">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org6c337c5">1.1.2. C header</a></li>
|
||||
<li><a href="#org1c3b86e">1.1.3. Source</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -348,18 +348,18 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc6bac21" class="outline-2">
|
||||
<h2 id="orgc6bac21"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div id="outline-container-org13ae9b6" class="outline-2">
|
||||
<h2 id="org13ae9b6"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org0a35bc2" class="outline-3">
|
||||
<h3 id="org0a35bc2"><span class="section-number-3">1.1</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org5c8c5e1" class="outline-3">
|
||||
<h3 id="org5c8c5e1"><span class="section-number-3">1.1</span> <code>qmckl_transpose</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</p>
|
||||
|
||||
<table id="orgeda4e02" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge362250" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -424,8 +424,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org62d511b" class="outline-4">
|
||||
<h4 id="org62d511b"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgb9652cb" class="outline-4">
|
||||
<h4 id="orgb9652cb"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -439,8 +439,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc308d9c" class="outline-4">
|
||||
<h4 id="orgc308d9c"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div id="outline-container-org6c337c5" class="outline-4">
|
||||
<h4 id="org6c337c5"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-1-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_transpose</span> (
|
||||
@ -456,8 +456,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9869807" class="outline-4">
|
||||
<h4 id="org9869807"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div id="outline-container-org1c3b86e" class="outline-4">
|
||||
<h4 id="org1c3b86e"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-1-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer </span><span style="color: #a020f0;">function</span><span style="color: #a0522d;"> </span><span style="color: #0000ff;">qmckl_transpose_f</span><span style="color: #000000; background-color: #ffffff;">(context, m, n, A, LDA, B, LDB)</span><span style="color: #a0522d;"> </span><span style="color: #a020f0;">&</span>
|
||||
@ -516,7 +516,7 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 17:10</p>
|
||||
<p class="date">Created: 2021-07-07 Wed 23:26</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user