mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-08-24 22:21:46 +02:00
Deploying to gh-pages from @ TREX-CoE/qmckl@5228c287ad 🚀
This commit is contained in:
parent
0a98caf300
commit
2a97499df5
@ -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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:43 -->
|
||||
<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>
|
||||
@ -375,7 +375,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: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:43</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
118
qmckl.html
118
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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:44 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Introduction</title>
|
||||
@ -346,36 +346,36 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org40c887e">1. Installing QMCkl</a>
|
||||
<li><a href="#org5c6bcbf">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orgc9b70e1">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org8b50489">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#orgc4a9252">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org6f0485a">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8b83812">2. Using QMCkl</a></li>
|
||||
<li><a href="#org4603ea7">3. Developing in QMCkl</a>
|
||||
<li><a href="#org6c9070b">2. Using QMCkl</a></li>
|
||||
<li><a href="#org87bfa14">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orga2491a6">3.1. Literate programming</a></li>
|
||||
<li><a href="#org35295a5">3.2. Source code editing</a></li>
|
||||
<li><a href="#orgeca0406">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org2d6d0f3">3.4. Coding rules</a></li>
|
||||
<li><a href="#orgf52d56e">3.5. Design of the library</a></li>
|
||||
<li><a href="#orgf7214cb">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org2cc6602">3.7. Application programming interface</a></li>
|
||||
<li><a href="#orga25c005">3.8. Global state</a></li>
|
||||
<li><a href="#org009125d">3.9. Headers</a></li>
|
||||
<li><a href="#orgce1f66f">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orga629560">3.11. High-level functions</a></li>
|
||||
<li><a href="#orge11f3d0">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org84b66b8">3.13. Algorithms</a></li>
|
||||
<li><a href="#orgb2d064c">3.1. Literate programming</a></li>
|
||||
<li><a href="#org3bb6532">3.2. Source code editing</a></li>
|
||||
<li><a href="#org84b9eac">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orga8192ea">3.4. Coding rules</a></li>
|
||||
<li><a href="#org77b13d7">3.5. Design of the library</a></li>
|
||||
<li><a href="#org74fd889">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org25ce416">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org5e0fbf0">3.8. Global state</a></li>
|
||||
<li><a href="#org07b501e">3.9. Headers</a></li>
|
||||
<li><a href="#org65f9e3b">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orgae30c26">3.11. High-level functions</a></li>
|
||||
<li><a href="#orgd92eab6">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org227a171">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org40c887e" class="outline-2">
|
||||
<h2 id="org40c887e"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-org5c6bcbf" class="outline-2">
|
||||
<h2 id="org5c6bcbf"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The latest version fo QMCkl can be downloaded
|
||||
@ -384,8 +384,8 @@ The latest version fo QMCkl can be downloaded
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc9b70e1" class="outline-3">
|
||||
<h3 id="orgc9b70e1"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-orgc4a9252" class="outline-3">
|
||||
<h3 id="orgc4a9252"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
QMCkl is built with GNU Autotools, so the usual
|
||||
@ -400,8 +400,8 @@ options are defined using <code>CFLAGS</code> and <code>FCFLAGS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b50489" class="outline-3">
|
||||
<h3 id="org8b50489"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-org6f0485a" class="outline-3">
|
||||
<h3 id="org6f0485a"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To compile from the source repository, additional dependencies are
|
||||
@ -422,8 +422,8 @@ to be executed first.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b83812" class="outline-2">
|
||||
<h2 id="org8b83812"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org6c9070b" class="outline-2">
|
||||
<h2 id="org6c9070b"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The <code>qmckl.h</code> header file installed in the <code>${prefix}/include</code> directory
|
||||
@ -452,12 +452,12 @@ Both files are located in the <code>include/</code> directory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4603ea7" class="outline-2">
|
||||
<h2 id="org4603ea7"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org87bfa14" class="outline-2">
|
||||
<h2 id="org87bfa14"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orga2491a6" class="outline-3">
|
||||
<h3 id="orga2491a6"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-orgb2d064c" class="outline-3">
|
||||
<h3 id="orgb2d064c"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
In a traditional source code, most of the lines of source files of a program
|
||||
@ -507,8 +507,8 @@ tarball contains the generated source code.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org35295a5" class="outline-3">
|
||||
<h3 id="org35295a5"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-org3bb6532" class="outline-3">
|
||||
<h3 id="org3bb6532"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div class="outline-text-3" id="text-3-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>.
|
||||
@ -539,8 +539,8 @@ org-mode.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeca0406" class="outline-3">
|
||||
<h3 id="orgeca0406"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org84b9eac" class="outline-3">
|
||||
<h3 id="org84b9eac"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<p>
|
||||
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some
|
||||
@ -604,8 +604,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d6d0f3" class="outline-3">
|
||||
<h3 id="org2d6d0f3"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-orga8192ea" class="outline-3">
|
||||
<h3 id="orga8192ea"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div class="outline-text-3" id="text-3-4">
|
||||
<p>
|
||||
The authors should follow the recommendations of the C99
|
||||
@ -625,8 +625,8 @@ make cppcheck ; cat cppcheck.out
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf52d56e" class="outline-3">
|
||||
<h3 id="orgf52d56e"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-org77b13d7" class="outline-3">
|
||||
<h3 id="org77b13d7"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div class="outline-text-3" id="text-3-5">
|
||||
<p>
|
||||
The proposed API should allow the library to: deal with memory transfers
|
||||
@ -637,8 +637,8 @@ functions (see below).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf7214cb" class="outline-3">
|
||||
<h3 id="orgf7214cb"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-org74fd889" class="outline-3">
|
||||
<h3 id="org74fd889"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div class="outline-text-3" id="text-3-6">
|
||||
<p>
|
||||
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
||||
@ -659,8 +659,8 @@ form is allowed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2cc6602" class="outline-3">
|
||||
<h3 id="org2cc6602"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org25ce416" class="outline-3">
|
||||
<h3 id="org25ce416"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div class="outline-text-3" id="text-3-7">
|
||||
<p>
|
||||
In the C language, the number of bits used by the integer types can change
|
||||
@ -692,15 +692,15 @@ bindings in other languages in other repositories.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga25c005" class="outline-3">
|
||||
<h3 id="orga25c005"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-org5e0fbf0" class="outline-3">
|
||||
<h3 id="org5e0fbf0"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div class="outline-text-3" id="text-3-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="orgbb6a3e2">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="orge3d9ca7">=context=</a> contains the global
|
||||
state of the library, and is used as the first argument of many
|
||||
QMCkl functions.
|
||||
</p>
|
||||
@ -714,8 +714,8 @@ the state is done by setters and getters, prefixed by
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org009125d" class="outline-3">
|
||||
<h3 id="org009125d"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-org07b501e" class="outline-3">
|
||||
<h3 id="org07b501e"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div class="outline-text-3" id="text-3-9">
|
||||
<p>
|
||||
A single <code>qmckl.h</code> header to be distributed by the library
|
||||
@ -803,8 +803,8 @@ and the types definitions should be written in the <code>*fh_type.f90</code> fil
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgce1f66f" class="outline-3">
|
||||
<h3 id="orgce1f66f"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org65f9e3b" class="outline-3">
|
||||
<h3 id="org65f9e3b"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div class="outline-text-3" id="text-3-10">
|
||||
<p>
|
||||
Low-level functions are very simple functions which are leaves of
|
||||
@ -813,14 +813,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="#orgbb6a3e2"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#orge3d9ca7"><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-orga629560" class="outline-3">
|
||||
<h3 id="orga629560"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-orgae30c26" class="outline-3">
|
||||
<h3 id="orgae30c26"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div class="outline-text-3" id="text-3-11">
|
||||
<p>
|
||||
High-level functions are at the top of the function call tree.
|
||||
@ -832,8 +832,8 @@ temporary storage, to simplify the use of accelerators.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge11f3d0" class="outline-3">
|
||||
<h3 id="orge11f3d0"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-orgd92eab6" class="outline-3">
|
||||
<h3 id="orgd92eab6"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div class="outline-text-3" id="text-3-12">
|
||||
<p>
|
||||
The minimal number of bits of precision required for a function
|
||||
@ -841,7 +841,7 @@ 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="#orgbb6a3e2"><code>context</code></a> variable.
|
||||
specified in the <a href="#orge3d9ca7"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -909,8 +909,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org84b66b8" class="outline-3">
|
||||
<h3 id="org84b66b8"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org227a171" class="outline-3">
|
||||
<h3 id="org227a171"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div class="outline-text-3" id="text-3-13">
|
||||
<p>
|
||||
Reducing the scaling of an algorithm usually implies also reducing
|
||||
@ -926,7 +926,7 @@ implemented adapted to different problem sizes.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-06-14 Wed 09:47</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:44</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
212
qmckl_ao.html
212
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>
|
||||
<!-- 2023-06-14 Wed 09:47 -->
|
||||
<!-- 2023-06-21 Wed 12:44 -->
|
||||
<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>
|
||||
@ -346,61 +346,61 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orga8f0243">1. Introduction</a></li>
|
||||
<li><a href="#orgc3f4dd2">2. Context</a>
|
||||
<li><a href="#org01c801a">1. Introduction</a></li>
|
||||
<li><a href="#org45f74ac">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org30f43c8">2.1. Constant data</a>
|
||||
<li><a href="#orgd3c6288">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#orge7c58e6">2.1.1. Initialization functions</a>
|
||||
<li><a href="#org7c49d98">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgd2c50b1">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org49e38ea">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#org0ee6621">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org642aad4">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6dc5228">2.1.2. Access functions</a>
|
||||
<li><a href="#org2d71a1e">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org4f68f53">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#orgf62bdc2">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org90221a7">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org957e91e">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org76286b4">2.2. Computed data</a>
|
||||
<li><a href="#orgd7000a4">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#org3ed2273">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org596abe3">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orgfb9c058">2.2.3. Access functions</a></li>
|
||||
<li><a href="#org4d7a225">2.2.1. After initialization</a></li>
|
||||
<li><a href="#orgf382bf4">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org179b840">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6776b28">3. Radial part</a>
|
||||
<li><a href="#orgf60e3ef">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org5945ed6">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org9f203bf">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#orgebeba1b">3.3. Computation of shells</a></li>
|
||||
<li><a href="#orgab1ddf3">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org2f8e264">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org5590128">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc733f26">4. Polynomial part</a>
|
||||
<li><a href="#org826d01d">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org98cbdf0">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org5ae33eb">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#org75d0ba8">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org247fec4">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3961c5f">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#org562dc19">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#org8080593">5.1. Values only</a>
|
||||
<li><a href="#org63e2c4a">5.1. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#org22dd2fe">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgca26d58">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org1698356">5.1.3. Interfaces</a></li>
|
||||
<li><a href="#org8302d0e">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#org5f80d7f">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org379f73d">5.1.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org62adbe6">5.2. Value, gradients, Laplacian</a>
|
||||
<li><a href="#org3ac63f2">5.2. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org390da60">5.2.1. Reference version</a></li>
|
||||
<li><a href="#org9c29ac7">5.2.2. HPC version</a></li>
|
||||
<li><a href="#orgcd0f03f">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#orgd306b86">5.2.1. Reference version</a></li>
|
||||
<li><a href="#org541f3e8">5.2.2. HPC version</a></li>
|
||||
<li><a href="#orgfa9dd3a">5.2.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -409,8 +409,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga8f0243" class="outline-2">
|
||||
<h2 id="orga8f0243"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-org01c801a" class="outline-2">
|
||||
<h2 id="org01c801a"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The atomic basis set is defined as a list of shells. Each shell \(s\) is
|
||||
@ -463,19 +463,19 @@ gradients and Laplacian of the atomic basis functions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc3f4dd2" class="outline-2">
|
||||
<h2 id="orgc3f4dd2"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-org45f74ac" class="outline-2">
|
||||
<h2 id="org45f74ac"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org30f43c8" class="outline-3">
|
||||
<h3 id="org30f43c8"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-orgd3c6288" class="outline-3">
|
||||
<h3 id="orgd3c6288"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
The following arrays are stored in the context, and need to be set
|
||||
when initializing the library:
|
||||
</p>
|
||||
|
||||
<table id="orge3ae09d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc6d781a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -709,7 +709,7 @@ calling the functions:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="orge6926be"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<pre class="src src-C" id="org13b4597"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> $type_of_V$ $V$);
|
||||
|
||||
<span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_ao_basis_$V$</span> ( <span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -746,7 +746,7 @@ For array variables, use the rule:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="orgec6b8cc"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<pre class="src src-C" id="orgb5f6509"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> $type_of_V$ $V$,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
||||
|
||||
@ -784,17 +784,17 @@ For array variables, use the rule:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge7c58e6" class="outline-4">
|
||||
<h4 id="orge7c58e6"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-org7c49d98" class="outline-4">
|
||||
<h4 id="org7c49d98"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<p>
|
||||
<code>size_max</code> is the dimension of the input array, which should be
|
||||
equal of larger than the value given in the table of section <a href="#orgc3f4dd2">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org45f74ac">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd2c50b1" class="outline-5">
|
||||
<h5 id="orgd2c50b1"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-org0ee6621" class="outline-5">
|
||||
<h5 id="org0ee6621"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-1-1">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -918,8 +918,8 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org49e38ea" class="outline-5">
|
||||
<h5 id="org49e38ea"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org642aad4" class="outline-5">
|
||||
<h5 id="org642aad4"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||
@ -1102,17 +1102,17 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6dc5228" class="outline-4">
|
||||
<h4 id="org6dc5228"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-org2d71a1e" class="outline-4">
|
||||
<h4 id="org2d71a1e"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<p>
|
||||
<code>size_max</code> is the dimension of the input array, which should be
|
||||
equal of larger than the value given in the table of section <a href="#orgc3f4dd2">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org45f74ac">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4f68f53" class="outline-5">
|
||||
<h5 id="org4f68f53"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-org90221a7" class="outline-5">
|
||||
<h5 id="org90221a7"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1234,8 +1234,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf62bdc2" class="outline-5">
|
||||
<h5 id="orgf62bdc2"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org957e91e" class="outline-5">
|
||||
<h5 id="org957e91e"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||
@ -1419,8 +1419,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org76286b4" class="outline-3">
|
||||
<h3 id="org76286b4"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-orgd7000a4" class="outline-3">
|
||||
<h3 id="orgd7000a4"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The following data is computed as described in the next sections:
|
||||
@ -1495,8 +1495,8 @@ The following data is computed as described in the next sections:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3ed2273" class="outline-4">
|
||||
<h4 id="org3ed2273"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-org4d7a225" class="outline-4">
|
||||
<h4 id="org4d7a225"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<p>
|
||||
When the basis set is completely entered, extra data structures may be
|
||||
@ -1510,8 +1510,8 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org596abe3" class="outline-4">
|
||||
<h4 id="org596abe3"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-orgf382bf4" class="outline-4">
|
||||
<h4 id="orgf382bf4"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<p>
|
||||
For faster access, we provide extra arrays for the shell information as:
|
||||
@ -1541,8 +1541,8 @@ which is a matrix-vector product.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfb9c058" class="outline-4">
|
||||
<h4 id="orgfb9c058"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-org179b840" class="outline-4">
|
||||
<h4 id="org179b840"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1555,7 +1555,7 @@ which is a matrix-vector product.
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of primitive
|
||||
basis functions evaluated at the current coordinates.
|
||||
See section <a href="#org9f203bf">3.2</a>.
|
||||
See section <a href="#org2f8e264">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1568,7 +1568,7 @@ See section <a href="#org9f203bf">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#orgebeba1b">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#org5590128">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1582,7 +1582,7 @@ evaluated at the current coordinates. See section <a href="#orgebeba1b">3.3</a>.
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of the atomic orbitals
|
||||
evaluated at the current coordinates.
|
||||
See section <a href="#org3961c5f">5</a>.
|
||||
See section <a href="#org562dc19">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1607,7 +1607,7 @@ Uses the given array to compute the VGL.
|
||||
|
||||
<p>
|
||||
Returns the array of values of the atomic orbitals evaluated at
|
||||
the current coordinates. See section <a href="#org3961c5f">5</a>.
|
||||
the current coordinates. See section <a href="#org562dc19">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1626,12 +1626,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6776b28" class="outline-2">
|
||||
<h2 id="org6776b28"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-orgf60e3ef" class="outline-2">
|
||||
<h2 id="orgf60e3ef"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org5945ed6" class="outline-3">
|
||||
<h3 id="org5945ed6"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-orgab1ddf3" class="outline-3">
|
||||
<h3 id="orgab1ddf3"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
<code>qmckl_ao_gaussian_vgl</code> computes the values, gradients and
|
||||
@ -1802,10 +1802,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9f203bf" class="outline-3">
|
||||
<h3 id="org9f203bf"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-org2f8e264" class="outline-3">
|
||||
<h3 id="org2f8e264"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="orgf368232" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org85b1bf3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1964,10 +1964,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgebeba1b" class="outline-3">
|
||||
<h3 id="orgebeba1b"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-org5590128" class="outline-3">
|
||||
<h3 id="org5590128"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="orgf66b944" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgaffd530" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2219,8 +2219,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc733f26" class="outline-2">
|
||||
<h2 id="orgc733f26"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-org826d01d" class="outline-2">
|
||||
<h2 id="org826d01d"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
Going from the atomic basis set to AOs implies a systematic
|
||||
@ -2240,8 +2240,8 @@ f & : & f_{xxx}, f_{xxy}, f_{xxz}, f_{xyy}, f_{xyz}, f_{xzz}, f_{yyy}, f_{yyz},
|
||||
\end{eqnarray}
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org98cbdf0" class="outline-3">
|
||||
<h3 id="org98cbdf0"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-org75d0ba8" class="outline-3">
|
||||
<h3 id="org75d0ba8"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
The <code>qmckl_ao_power</code> function computes all the powers of the <code>n</code>
|
||||
@ -2253,7 +2253,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="org05589bf" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfba1334" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2391,8 +2391,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5ae33eb" class="outline-3">
|
||||
<h3 id="org5ae33eb"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-org247fec4" class="outline-3">
|
||||
<h3 id="org247fec4"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div class="outline-text-3" id="text-4-2">
|
||||
<p>
|
||||
A polynomial is centered on a nucleus \(\mathbf{R}_i\)
|
||||
@ -2437,7 +2437,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="org02bcd41" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge8a87aa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3216,18 +3216,18 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3961c5f" class="outline-2">
|
||||
<h2 id="org3961c5f"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-org562dc19" class="outline-2">
|
||||
<h2 id="org562dc19"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-org8080593" class="outline-3">
|
||||
<h3 id="org8080593"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div id="outline-container-org63e2c4a" class="outline-3">
|
||||
<h3 id="org63e2c4a"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
</div>
|
||||
<div id="outline-container-org22dd2fe" class="outline-4">
|
||||
<h4 id="org22dd2fe"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org8302d0e" class="outline-4">
|
||||
<h4 id="org8302d0e"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<table id="org9c9b1d3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgaa6f2ae" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3463,10 +3463,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgca26d58" class="outline-4">
|
||||
<h4 id="orgca26d58"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div id="outline-container-org5f80d7f" class="outline-4">
|
||||
<h4 id="org5f80d7f"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="org9c51666" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7de094e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3624,8 +3624,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1698356" class="outline-4">
|
||||
<h4 id="org1698356"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org379f73d" class="outline-4">
|
||||
<h4 id="org379f73d"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div class="outline-text-4" id="text-5-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_compute_ao_value_doc</span> (
|
||||
@ -3674,14 +3674,14 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org62adbe6" class="outline-3">
|
||||
<h3 id="org62adbe6"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-org3ac63f2" class="outline-3">
|
||||
<h3 id="org3ac63f2"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-5-2">
|
||||
</div>
|
||||
<div id="outline-container-org390da60" class="outline-4">
|
||||
<h4 id="org390da60"><span class="section-number-4">5.2.1</span> Reference version</h4>
|
||||
<div id="outline-container-orgd306b86" class="outline-4">
|
||||
<h4 id="orgd306b86"><span class="section-number-4">5.2.1</span> Reference version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="orgcf7635c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfac28f1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3946,10 +3946,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9c29ac7" class="outline-4">
|
||||
<h4 id="org9c29ac7"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-org541f3e8" class="outline-4">
|
||||
<h4 id="org541f3e8"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="orge3ceae7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2e64d88" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4108,8 +4108,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgcd0f03f" class="outline-4">
|
||||
<h4 id="orgcd0f03f"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-orgfa9dd3a" class="outline-4">
|
||||
<h4 id="orgfa9dd3a"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div class="outline-text-4" id="text-5-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_compute_ao_vgl_doc</span> (
|
||||
@ -4161,7 +4161,7 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-06-14 Wed 09:47</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:44</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
184
qmckl_blas.html
184
qmckl_blas.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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>BLAS functions</title>
|
||||
@ -346,56 +346,56 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org978969c">-</a></li>
|
||||
<li><a href="#org5947a86">1. Data types</a>
|
||||
<li><a href="#orgebd9ed2">-</a></li>
|
||||
<li><a href="#org634b702">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#org3f1aec8">1.1. Vector</a></li>
|
||||
<li><a href="#orgc4997b6">1.2. Matrix</a></li>
|
||||
<li><a href="#orgfe501ed">1.3. Tensor</a></li>
|
||||
<li><a href="#org6e3d858">1.4. Reshaping</a>
|
||||
<li><a href="#org2ccb89c">1.1. Vector</a></li>
|
||||
<li><a href="#orgff7e6b8">1.2. Matrix</a></li>
|
||||
<li><a href="#org10583d9">1.3. Tensor</a></li>
|
||||
<li><a href="#org762c6a0">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#orgd532011">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orgd9146e9">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org801069d">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org5704d39">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org3cfa15c">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org36f9e09">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#orge4c108d">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orgd425caa">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org0e21681">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#orga2b7894">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org5c44e22">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#orgdda6609">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcd918e1">1.5. Access macros</a></li>
|
||||
<li><a href="#orga22297c">1.6. Set all elements</a>
|
||||
<li><a href="#org51d1de6">1.5. Access macros</a></li>
|
||||
<li><a href="#orgad6645e">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#orgddd43f5">1.6.1. Vector</a></li>
|
||||
<li><a href="#org30eeab3">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org368cf51">1.6.3. Tensor</a></li>
|
||||
<li><a href="#orgca10e62">1.6.1. Vector</a></li>
|
||||
<li><a href="#org926fc8f">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org9d3b78a">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbca32c8">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#orgfe86b2a">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||
<li><a href="#org1cab81d">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#org15b8848">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbd0cd50">2. Matrix operations</a>
|
||||
<li><a href="#org8957456">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org63de366">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org11aacc4">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org134246e">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#orgca14a5a">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org85140db">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<li><a href="#orga8e2694">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#orgb7dfb29">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org8728ef8">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org2859e76">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org1cc8c13">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<ul>
|
||||
<li><a href="#org929756c">2.5.1. C interface</a></li>
|
||||
<li><a href="#orgfacc4bd">2.5.1. C interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org32cc6e7">2.6. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#org29a9323">2.6. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga860d4c">3. Utilities</a></li>
|
||||
<li><a href="#org0ac2438">3. Utilities</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org978969c" class="outline-2">
|
||||
<h2 id="org978969c">-</h2>
|
||||
<div class="outline-text-2" id="text-org978969c">
|
||||
<div id="outline-container-orgebd9ed2" class="outline-2">
|
||||
<h2 id="orgebd9ed2">-</h2>
|
||||
<div class="outline-text-2" id="text-orgebd9ed2">
|
||||
<p>
|
||||
Basic linear algebra data types and operations are described in this file.
|
||||
The data types are private, so that HPC implementations can use
|
||||
@ -409,12 +409,12 @@ are not intended to be passed to external codes.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5947a86" class="outline-2">
|
||||
<h2 id="org5947a86"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-org634b702" class="outline-2">
|
||||
<h2 id="org634b702"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org3f1aec8" class="outline-3">
|
||||
<h3 id="org3f1aec8"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-org2ccb89c" class="outline-3">
|
||||
<h3 id="org2ccb89c"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -468,8 +468,8 @@ Allocates a new vector. If the allocation failed the size is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc4997b6" class="outline-3">
|
||||
<h3 id="orgc4997b6"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-orgff7e6b8" class="outline-3">
|
||||
<h3 id="orgff7e6b8"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -529,8 +529,8 @@ Allocates a new matrix. If the allocation failed the sizes are zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfe501ed" class="outline-3">
|
||||
<h3 id="orgfe501ed"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-org10583d9" class="outline-3">
|
||||
<h3 id="org10583d9"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -597,16 +597,16 @@ is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6e3d858" class="outline-3">
|
||||
<h3 id="org6e3d858"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-org762c6a0" class="outline-3">
|
||||
<h3 id="org762c6a0"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Reshaping occurs in-place and the pointer to the data is copied.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd532011" class="outline-4">
|
||||
<h4 id="orgd532011"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-orge4c108d" class="outline-4">
|
||||
<h4 id="orge4c108d"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -622,8 +622,8 @@ Reshapes a vector into a matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd9146e9" class="outline-4">
|
||||
<h4 id="orgd9146e9"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-orgd425caa" class="outline-4">
|
||||
<h4 id="orgd425caa"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -639,8 +639,8 @@ Reshapes a vector into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org801069d" class="outline-4">
|
||||
<h4 id="org801069d"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-org0e21681" class="outline-4">
|
||||
<h4 id="org0e21681"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -654,8 +654,8 @@ Reshapes a matrix into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5704d39" class="outline-4">
|
||||
<h4 id="org5704d39"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-orga2b7894" class="outline-4">
|
||||
<h4 id="orga2b7894"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-4-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -671,8 +671,8 @@ Reshapes a matrix into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3cfa15c" class="outline-4">
|
||||
<h4 id="org3cfa15c"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-org5c44e22" class="outline-4">
|
||||
<h4 id="org5c44e22"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-4-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -686,8 +686,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org36f9e09" class="outline-4">
|
||||
<h4 id="org36f9e09"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-orgdda6609" class="outline-4">
|
||||
<h4 id="orgdda6609"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-4-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -704,8 +704,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcd918e1" class="outline-3">
|
||||
<h3 id="orgcd918e1"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-org51d1de6" class="outline-3">
|
||||
<h3 id="org51d1de6"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
Macros are provided to ease the access to vectors, matrices and
|
||||
@ -730,12 +730,12 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga22297c" class="outline-3">
|
||||
<h3 id="orga22297c"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-orgad6645e" class="outline-3">
|
||||
<h3 id="orgad6645e"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div class="outline-text-3" id="text-1-6">
|
||||
</div>
|
||||
<div id="outline-container-orgddd43f5" class="outline-4">
|
||||
<h4 id="orgddd43f5"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-orgca10e62" class="outline-4">
|
||||
<h4 id="orgca10e62"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-6-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -745,8 +745,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org30eeab3" class="outline-4">
|
||||
<h4 id="org30eeab3"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-org926fc8f" class="outline-4">
|
||||
<h4 id="org926fc8f"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-6-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -756,8 +756,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org368cf51" class="outline-4">
|
||||
<h4 id="org368cf51"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-org9d3b78a" class="outline-4">
|
||||
<h4 id="org9d3b78a"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-6-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -768,8 +768,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbca32c8" class="outline-3">
|
||||
<h3 id="orgbca32c8"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-org1cab81d" class="outline-3">
|
||||
<h3 id="org1cab81d"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div class="outline-text-3" id="text-1-7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -851,8 +851,8 @@ Converts a <code>double*</code> to a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfe86b2a" class="outline-3">
|
||||
<h3 id="orgfe86b2a"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
||||
<div id="outline-container-org15b8848" class="outline-3">
|
||||
<h3 id="org15b8848"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
||||
<div class="outline-text-3" id="text-1-8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span>* <span style="color: #0000ff;">qmckl_alloc_double_of_vector</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -876,12 +876,12 @@ Converts a <code>double*</code> to a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd0cd50" class="outline-2">
|
||||
<h2 id="orgbd0cd50"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-org8957456" class="outline-2">
|
||||
<h2 id="org8957456"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org63de366" class="outline-3">
|
||||
<h3 id="org63de366"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-orga8e2694" class="outline-3">
|
||||
<h3 id="orga8e2694"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
Matrix multiplication with a BLAS interface:
|
||||
@ -893,7 +893,7 @@ Matrix multiplication with a BLAS interface:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orge89df96" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgce8ebc0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1052,8 +1052,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org11aacc4" class="outline-3">
|
||||
<h3 id="org11aacc4"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div id="outline-container-orgb7dfb29" class="outline-3">
|
||||
<h3 id="orgb7dfb29"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
"Size-safe" proxy function with the same functionality as <code>qmckl_dgemm</code>
|
||||
@ -1062,7 +1062,7 @@ are required primarily for the Python API, where compatibility with
|
||||
NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||
</p>
|
||||
|
||||
<table id="org6fdd408" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2634df9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1248,8 +1248,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org134246e" class="outline-3">
|
||||
<h3 id="org134246e"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-org8728ef8" class="outline-3">
|
||||
<h3 id="org8728ef8"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
@ -1261,7 +1261,7 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orge0268f5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgde1b9e2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1355,8 +1355,8 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgca14a5a" class="outline-3">
|
||||
<h3 id="orgca14a5a"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-org2859e76" class="outline-3">
|
||||
<h3 id="org2859e76"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
Given a matrix \(\mathbf{A}\), the adjugate matrix
|
||||
@ -1374,7 +1374,7 @@ of \(\mathbf{A}\).
|
||||
See also: <a href="https://en.wikipedia.org/wiki/Adjugate_matrix">https://en.wikipedia.org/wiki/Adjugate_matrix</a>
|
||||
</p>
|
||||
|
||||
<table id="orga1d4717" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org241d067" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1570,8 +1570,8 @@ determinant with the inverse:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org85140db" class="outline-3">
|
||||
<h3 id="org85140db"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div id="outline-container-org1cc8c13" class="outline-3">
|
||||
<h3 id="org1cc8c13"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
"Size-safe" proxy function with the same functionality as <code>qmckl_adjugate</code>
|
||||
@ -1581,7 +1581,7 @@ NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||
</p>
|
||||
|
||||
|
||||
<table id="orgfc15d9b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc04f47f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1703,13 +1703,13 @@ LAPACK library.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org929756c" class="outline-4">
|
||||
<h4 id="org929756c"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
<div id="outline-container-orgfacc4bd" class="outline-4">
|
||||
<h4 id="orgfacc4bd"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org32cc6e7" class="outline-3">
|
||||
<h3 id="org32cc6e7"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org29a9323" class="outline-3">
|
||||
<h3 id="org29a9323"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
@ -1770,8 +1770,8 @@ Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga860d4c" class="outline-2">
|
||||
<h2 id="orga860d4c"><span class="section-number-2">3</span> Utilities</h2>
|
||||
<div id="outline-container-org0ac2438" class="outline-2">
|
||||
<h2 id="org0ac2438"><span class="section-number-2">3</span> Utilities</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
Trick to make MKL efficient on AMD
|
||||
@ -1789,7 +1789,7 @@ Trick to make MKL efficient on AMD
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:43</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>
|
||||
<!-- 2023-06-14 Wed 09:47 -->
|
||||
<!-- 2023-06-21 Wed 12:44 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Context</title>
|
||||
@ -324,21 +324,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org5fafae4">1. Context handling</a>
|
||||
<li><a href="#org13a176f">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#orgbc63e5f">1.1. Data structure</a></li>
|
||||
<li><a href="#org89a4780">1.2. Creation</a></li>
|
||||
<li><a href="#org4920ad2">1.3. Locking</a></li>
|
||||
<li><a href="#orgd1fc7aa">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org13165f5">1.5. Destroy</a></li>
|
||||
<li><a href="#org7ad37b4">1.1. Data structure</a></li>
|
||||
<li><a href="#org16989f8">1.2. Creation</a></li>
|
||||
<li><a href="#org177ff5f">1.3. Locking</a></li>
|
||||
<li><a href="#orge0f5849">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org212b3e3">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5fafae4" class="outline-2">
|
||||
<h2 id="org5fafae4"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org13a176f" class="outline-2">
|
||||
<h2 id="org13a176f"><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,
|
||||
@ -351,7 +351,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="orge84e5c9"><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="org5609a05"><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>
|
||||
@ -369,8 +369,8 @@ and <code>ctx</code> is a <code>qmckl_context_struct*</code> pointer.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbc63e5f" class="outline-3">
|
||||
<h3 id="orgbc63e5f"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org7ad37b4" class="outline-3">
|
||||
<h3 id="org7ad37b4"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
The qmckl<sub>extra</sub> pointer lets the other implementation of the library
|
||||
@ -406,7 +406,7 @@ to be recomputed. The date is incremented when the context is touched.
|
||||
|
||||
<p>
|
||||
When a new element is added to the context, the functions
|
||||
<a href="#org89a4780"><code>qmckl_context_create</code></a> <a href="#org13165f5"><code>qmckl_context_destroy</code></a> and <a href="#orgd1fc7aa"><code>qmckl_context_copy</code></a>
|
||||
<a href="#org16989f8"><code>qmckl_context_create</code></a> <a href="#org212b3e3"><code>qmckl_context_destroy</code></a> and <a href="#orge0f5849"><code>qmckl_context_copy</code></a>
|
||||
should be updated in order to make deep copies.
|
||||
</p>
|
||||
|
||||
@ -427,8 +427,8 @@ This has the effect to increment the date of the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org89a4780" class="outline-3">
|
||||
<h3 id="org89a4780"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-org16989f8" class="outline-3">
|
||||
<h3 id="org16989f8"><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.
|
||||
@ -445,8 +445,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org4920ad2" class="outline-3">
|
||||
<h3 id="org4920ad2"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-org177ff5f" class="outline-3">
|
||||
<h3 id="org177ff5f"><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
|
||||
@ -462,8 +462,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgd1fc7aa" class="outline-3">
|
||||
<h3 id="orgd1fc7aa"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-orge0f5849" class="outline-3">
|
||||
<h3 id="orge0f5849"><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
|
||||
@ -471,8 +471,8 @@ number of times the thread has locked it is saved in the
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org13165f5" class="outline-3">
|
||||
<h3 id="org13165f5"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org212b3e3" class="outline-3">
|
||||
<h3 id="org212b3e3"><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.
|
||||
@ -490,7 +490,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: 2023-06-14 Wed 09:47</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:44</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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Slater Determinant</title>
|
||||
@ -324,32 +324,32 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org3968845">1. Context</a>
|
||||
<li><a href="#org4e659a2">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org1acf5fb">1.1. Data structure</a></li>
|
||||
<li><a href="#org03b8f7f">1.2. Access functions</a></li>
|
||||
<li><a href="#orge1bdbcf">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org1aa9e1a">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org4dc2d99">1.5. Test</a></li>
|
||||
<li><a href="#orgd133a8d">1.1. Data structure</a></li>
|
||||
<li><a href="#orgbe10ba4">1.2. Access functions</a></li>
|
||||
<li><a href="#orgf0302ee">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgb820aa2">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org1edffa0">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgeae605c">2. Computation</a>
|
||||
<li><a href="#org0dd5395">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org3c903ed">2.1. Determinant matrix</a>
|
||||
<li><a href="#org8833dcb">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org4c1b4d3">2.1.1. Get</a></li>
|
||||
<li><a href="#orgb43fa61">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgae3f939">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#orgfa174cd">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org780d60f">2.1.5. Test</a></li>
|
||||
<li><a href="#orgdf1cf75">2.1.1. Get</a></li>
|
||||
<li><a href="#org7571b7c">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgff02fd2">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#orga1f1de4">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orge54b9d7">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0bd677f">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#org23f200e">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org64774e6">2.2.1. Get</a></li>
|
||||
<li><a href="#org9e64364">2.2.2. Provide</a></li>
|
||||
<li><a href="#org3806d2c">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org10954cd">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#org6112d6f">2.2.1. Get</a></li>
|
||||
<li><a href="#org2f29a89">2.2.2. Provide</a></li>
|
||||
<li><a href="#org3a836a6">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org15add61">2.2.4. Compute beta</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -358,8 +358,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3968845" class="outline-2">
|
||||
<h2 id="org3968845"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org4e659a2" class="outline-2">
|
||||
<h2 id="org4e659a2"><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:
|
||||
@ -535,8 +535,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1acf5fb" class="outline-3">
|
||||
<h3 id="org1acf5fb"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgd133a8d" class="outline-3">
|
||||
<h3 id="orgd133a8d"><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_determinant_struct</span> {
|
||||
@ -604,8 +604,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org03b8f7f" class="outline-3">
|
||||
<h3 id="org03b8f7f"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgbe10ba4" class="outline-3">
|
||||
<h3 id="orgbe10ba4"><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 slater determinants have been provided, the following
|
||||
@ -619,8 +619,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge1bdbcf" class="outline-3">
|
||||
<h3 id="orge1bdbcf"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgf0302ee" class="outline-3">
|
||||
<h3 id="orgf0302ee"><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
|
||||
@ -643,24 +643,24 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1aa9e1a" class="outline-3">
|
||||
<h3 id="org1aa9e1a"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-orgb820aa2" class="outline-3">
|
||||
<h3 id="orgb820aa2"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-org4dc2d99" class="outline-3">
|
||||
<h3 id="org4dc2d99"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-org1edffa0" class="outline-3">
|
||||
<h3 id="org1edffa0"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgeae605c" class="outline-2">
|
||||
<h2 id="orgeae605c"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org0dd5395" class="outline-2">
|
||||
<h2 id="org0dd5395"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org3c903ed" class="outline-3">
|
||||
<h3 id="org3c903ed"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-org8833dcb" class="outline-3">
|
||||
<h3 id="org8833dcb"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4c1b4d3" class="outline-4">
|
||||
<h4 id="org4c1b4d3"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgdf1cf75" class="outline-4">
|
||||
<h4 id="orgdf1cf75"><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_det_vgl_alpha</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;">det_vgl_alpha</span>);
|
||||
@ -670,14 +670,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb43fa61" class="outline-4">
|
||||
<h4 id="orgb43fa61"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org7571b7c" class="outline-4">
|
||||
<h4 id="org7571b7c"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgae3f939" class="outline-4">
|
||||
<h4 id="orgae3f939"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-orgff02fd2" class="outline-4">
|
||||
<h4 id="orgff02fd2"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orgdc930d9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org605625b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -851,10 +851,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfa174cd" class="outline-4">
|
||||
<h4 id="orgfa174cd"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-orga1f1de4" class="outline-4">
|
||||
<h4 id="orga1f1de4"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="org5d4c965" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org975417a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1028,18 +1028,18 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org780d60f" class="outline-4">
|
||||
<h4 id="org780d60f"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-orge54b9d7" class="outline-4">
|
||||
<h4 id="orge54b9d7"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0bd677f" class="outline-3">
|
||||
<h3 id="org0bd677f"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-org23f200e" class="outline-3">
|
||||
<h3 id="org23f200e"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org64774e6" class="outline-4">
|
||||
<h4 id="org64774e6"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org6112d6f" class="outline-4">
|
||||
<h4 id="org6112d6f"><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_det_inv_matrix_alpha</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;">det_inv_matrix_alpha</span>);
|
||||
@ -1053,14 +1053,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9e64364" class="outline-4">
|
||||
<h4 id="org9e64364"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org2f29a89" class="outline-4">
|
||||
<h4 id="org2f29a89"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3806d2c" class="outline-4">
|
||||
<h4 id="org3806d2c"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org3a836a6" class="outline-4">
|
||||
<h4 id="org3a836a6"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org862d082" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfe1f460" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1222,10 +1222,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org10954cd" class="outline-4">
|
||||
<h4 id="org10954cd"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org15add61" class="outline-4">
|
||||
<h4 id="org15add61"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="org5584c70" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org293d85b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1392,7 +1392,7 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:43</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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:43 -->
|
||||
<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>
|
||||
@ -346,54 +346,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org72ea2ff">1. Squared distance</a>
|
||||
<li><a href="#org174b8d9">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org4facdf9">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#orgf239219">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#org44df751">1.1.1. Performance</a></li>
|
||||
<li><a href="#org0622698">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc24f59f">2. Distance</a>
|
||||
<li><a href="#org08f31ca">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org958ddef">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#org41d4bee">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org3dbdfdb">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org711793a">2.1.2. C header</a></li>
|
||||
<li><a href="#org0a46745">2.1.3. Source</a></li>
|
||||
<li><a href="#orgb202fd9">2.1.4. Performance</a></li>
|
||||
<li><a href="#org99db624">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org7bcc08f">2.1.2. C header</a></li>
|
||||
<li><a href="#org32f4062">2.1.3. Source</a></li>
|
||||
<li><a href="#org7dd4b2f">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org99176bc">3. Rescaled Distance</a>
|
||||
<li><a href="#org6c6f552">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#orgde992eb">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#orgecbc795">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgc4cf43a">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org8baa994">3.1.2. C header</a></li>
|
||||
<li><a href="#orgd1a4036">3.1.3. Source</a></li>
|
||||
<li><a href="#org891948c">3.1.4. Performance</a></li>
|
||||
<li><a href="#org4615035">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgd22240f">3.1.2. C header</a></li>
|
||||
<li><a href="#orge631d3f">3.1.3. Source</a></li>
|
||||
<li><a href="#orga7bb425">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2002637">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#org6612a13">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org5714587">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||
<li><a href="#orgb21aae3">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org72ea2ff" class="outline-2">
|
||||
<h2 id="org72ea2ff"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org174b8d9" class="outline-2">
|
||||
<h2 id="org174b8d9"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org4facdf9" class="outline-3">
|
||||
<h3 id="org4facdf9"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-orgf239219" class="outline-3">
|
||||
<h3 id="orgf239219"><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
|
||||
@ -406,7 +406,7 @@ between all pairs of points in two sets, one point within each set:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org4853276" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org84d8277" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -672,8 +672,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org44df751" class="outline-4">
|
||||
<h4 id="org44df751"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-org0622698" class="outline-4">
|
||||
<h4 id="org0622698"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<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-orgc24f59f" class="outline-2">
|
||||
<h2 id="orgc24f59f"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-org08f31ca" class="outline-2">
|
||||
<h2 id="org08f31ca"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org958ddef" class="outline-3">
|
||||
<h3 id="org958ddef"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-org41d4bee" class="outline-3">
|
||||
<h3 id="org41d4bee"><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="org0b2da40" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf88d987" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -807,8 +807,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3dbdfdb" class="outline-4">
|
||||
<h4 id="org3dbdfdb"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org99db624" class="outline-4">
|
||||
<h4 id="org99db624"><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>
|
||||
@ -826,8 +826,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org711793a" class="outline-4">
|
||||
<h4 id="org711793a"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org7bcc08f" class="outline-4">
|
||||
<h4 id="org7bcc08f"><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</span> (
|
||||
@ -847,8 +847,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a46745" class="outline-4">
|
||||
<h4 id="org0a46745"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-org32f4062" class="outline-4">
|
||||
<h4 id="org32f4062"><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>
|
||||
@ -995,8 +995,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb202fd9" class="outline-4">
|
||||
<h4 id="orgb202fd9"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org7dd4b2f" class="outline-4">
|
||||
<h4 id="org7dd4b2f"><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.
|
||||
@ -1006,12 +1006,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org99176bc" class="outline-2">
|
||||
<h2 id="org99176bc"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org6c6f552" class="outline-2">
|
||||
<h2 id="org6c6f552"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgde992eb" class="outline-3">
|
||||
<h3 id="orgde992eb"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-orgecbc795" class="outline-3">
|
||||
<h3 id="orgecbc795"><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
|
||||
@ -1029,7 +1029,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="orgb3339e2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf153a20" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1137,8 +1137,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc4cf43a" class="outline-4">
|
||||
<h4 id="orgc4cf43a"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org4615035" class="outline-4">
|
||||
<h4 id="org4615035"><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>
|
||||
@ -1156,8 +1156,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8baa994" class="outline-4">
|
||||
<h4 id="org8baa994"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgd22240f" class="outline-4">
|
||||
<h4 id="orgd22240f"><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</span> (
|
||||
@ -1178,8 +1178,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd1a4036" class="outline-4">
|
||||
<h4 id="orgd1a4036"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-orge631d3f" class="outline-4">
|
||||
<h4 id="orge631d3f"><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>
|
||||
@ -1329,8 +1329,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org891948c" class="outline-4">
|
||||
<h4 id="org891948c"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orga7bb425" class="outline-4">
|
||||
<h4 id="orga7bb425"><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.
|
||||
@ -1339,12 +1339,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org2002637" class="outline-2">
|
||||
<h2 id="org2002637"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-org6612a13" class="outline-2">
|
||||
<h2 id="org6612a13"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org5714587" class="outline-3">
|
||||
<h3 id="org5714587"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_gl</code></h3>
|
||||
<div id="outline-container-orgb21aae3" class="outline-3">
|
||||
<h3 id="orgb21aae3"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_gl</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled_gl</code> computes the matrix of the gradient and Laplacian of the
|
||||
@ -1399,7 +1399,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="org7d7078c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf49eae2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1715,7 +1715,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: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:43</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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Electrons</title>
|
||||
@ -346,59 +346,59 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org8c13b1d">1. Context</a>
|
||||
<li><a href="#org1fe8084">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgd5a65d0">1.1. Data structure</a></li>
|
||||
<li><a href="#org82d8b64">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org8923ef2">1.3. Access functions</a>
|
||||
<li><a href="#org1b8a663">1.1. Data structure</a></li>
|
||||
<li><a href="#orga426ea8">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orgd6d2056">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgedcc0d7">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#org5c12742">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#org8548feb">1.3.3. Electron coordinates</a></li>
|
||||
<li><a href="#org24d3082">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#org12f64c9">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#orgfa026e0">1.3.3. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org048ddbc">1.4. Test</a></li>
|
||||
<li><a href="#org540af0c">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org060f59f">2. Computation</a>
|
||||
<li><a href="#orge755751">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgc43ebb5">2.1. Electron-electron distances</a>
|
||||
<li><a href="#org84fdd7d">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#orga411d51">2.1.1. Get</a></li>
|
||||
<li><a href="#orge72691f">2.1.2. Compute</a></li>
|
||||
<li><a href="#org989f8ae">2.1.3. Test</a></li>
|
||||
<li><a href="#org1145135">2.1.1. Get</a></li>
|
||||
<li><a href="#org9940790">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgf115bb7">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4a284dd">2.2. Electron-electron potential</a>
|
||||
<li><a href="#org1f31cfe">2.2. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#org80c91ad">2.2.1. Get</a></li>
|
||||
<li><a href="#org800723d">2.2.2. Compute</a></li>
|
||||
<li><a href="#org2d2f691">2.2.3. Test</a></li>
|
||||
<li><a href="#org0b28e4f">2.2.1. Get</a></li>
|
||||
<li><a href="#orgc3c53bf">2.2.2. Compute</a></li>
|
||||
<li><a href="#org32c7b23">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org508facf">2.3. Electron-nucleus distances</a>
|
||||
<li><a href="#org26f49f8">2.3. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org1dd1152">2.3.1. Get</a></li>
|
||||
<li><a href="#org2ac4133">2.3.2. Compute</a></li>
|
||||
<li><a href="#org929134b">2.3.3. Test</a></li>
|
||||
<li><a href="#org835b00a">2.3.1. Get</a></li>
|
||||
<li><a href="#org25afe31">2.3.2. Compute</a></li>
|
||||
<li><a href="#org442dce8">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org375a1a2">2.4. Electron-nucleus potential</a>
|
||||
<li><a href="#org7851e2d">2.4. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#org7a199df">2.4.1. Get</a></li>
|
||||
<li><a href="#org307d358">2.4.2. Compute</a></li>
|
||||
<li><a href="#org29afff3">2.4.3. Test</a></li>
|
||||
<li><a href="#orgf92ecad">2.4.1. Get</a></li>
|
||||
<li><a href="#orge58be7b">2.4.2. Compute</a></li>
|
||||
<li><a href="#orge6ff24a">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc95cb2a">2.5. Generate initial coordinates</a></li>
|
||||
<li><a href="#orgd28ba55">2.5. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8c13b1d" class="outline-2">
|
||||
<h2 id="org8c13b1d"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org1fe8084" class="outline-2">
|
||||
<h2 id="org1fe8084"><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:
|
||||
@ -539,8 +539,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd5a65d0" class="outline-3">
|
||||
<h3 id="orgd5a65d0"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org1b8a663" class="outline-3">
|
||||
<h3 id="org1b8a663"><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">
|
||||
@ -609,8 +609,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org82d8b64" class="outline-3">
|
||||
<h3 id="org82d8b64"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-orga426ea8" class="outline-3">
|
||||
<h3 id="orga426ea8"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To set the data relative to the electrons in the context, the
|
||||
@ -683,8 +683,8 @@ in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8923ef2" class="outline-3">
|
||||
<h3 id="org8923ef2"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-orgd6d2056" class="outline-3">
|
||||
<h3 id="orgd6d2056"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||
@ -696,12 +696,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgedcc0d7" class="outline-4">
|
||||
<h4 id="orgedcc0d7"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-org24d3082" class="outline-4">
|
||||
<h4 id="org24d3082"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5c12742" class="outline-4">
|
||||
<h4 id="org5c12742"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-org12f64c9" class="outline-4">
|
||||
<h4 id="org12f64c9"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div class="outline-text-4" id="text-1-3-2">
|
||||
<p>
|
||||
A walker is a set of electron coordinates that are arguments of
|
||||
@ -710,8 +710,8 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8548feb" class="outline-4">
|
||||
<h4 id="org8548feb"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div id="outline-container-orgfa026e0" class="outline-4">
|
||||
<h4 id="orgfa026e0"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-3-3">
|
||||
<p>
|
||||
Returns the current electron coordinates. The pointer is assumed
|
||||
@ -761,8 +761,8 @@ current points.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org048ddbc" class="outline-3">
|
||||
<h3 id="org048ddbc"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org540af0c" class="outline-3">
|
||||
<h3 id="org540af0c"><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> */
|
||||
@ -841,8 +841,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org060f59f" class="outline-2">
|
||||
<h2 id="org060f59f"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orge755751" class="outline-2">
|
||||
<h2 id="orge755751"><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
|
||||
@ -855,12 +855,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc43ebb5" class="outline-3">
|
||||
<h3 id="orgc43ebb5"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-org84fdd7d" class="outline-3">
|
||||
<h3 id="org84fdd7d"><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-orga411d51" class="outline-4">
|
||||
<h4 id="orga411d51"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org1145135" class="outline-4">
|
||||
<h4 id="org1145135"><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>);
|
||||
@ -869,10 +869,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge72691f" class="outline-4">
|
||||
<h4 id="orge72691f"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org9940790" class="outline-4">
|
||||
<h4 id="org9940790"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgad030b8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd0f1ccd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -977,8 +977,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org989f8ae" class="outline-4">
|
||||
<h4 id="org989f8ae"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgf115bb7" class="outline-4">
|
||||
<h4 id="orgf115bb7"><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>));
|
||||
@ -1012,8 +1012,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4a284dd" class="outline-3">
|
||||
<h3 id="org4a284dd"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-org1f31cfe" class="outline-3">
|
||||
<h3 id="org1f31cfe"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
<code>ee_potential</code> is given by
|
||||
@ -1031,8 +1031,8 @@ distance.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org80c91ad" class="outline-4">
|
||||
<h4 id="org80c91ad"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org0b28e4f" class="outline-4">
|
||||
<h4 id="org0b28e4f"><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_potential</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;">ee_potential</span>);
|
||||
@ -1041,10 +1041,10 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org800723d" class="outline-4">
|
||||
<h4 id="org800723d"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orgc3c53bf" class="outline-4">
|
||||
<h4 id="orgc3c53bf"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgc90c23e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3bbd4f5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1160,8 +1160,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d2f691" class="outline-4">
|
||||
<h4 id="org2d2f691"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org32c7b23" class="outline-4">
|
||||
<h4 id="org32c7b23"><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: #228b22;">double</span> <span style="color: #a0522d;">ee_potential</span>[walk_num];
|
||||
@ -1173,12 +1173,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org508facf" class="outline-3">
|
||||
<h3 id="org508facf"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-org26f49f8" class="outline-3">
|
||||
<h3 id="org26f49f8"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
</div>
|
||||
<div id="outline-container-org1dd1152" class="outline-4">
|
||||
<h4 id="org1dd1152"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org835b00a" class="outline-4">
|
||||
<h4 id="org835b00a"><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_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>);
|
||||
@ -1187,10 +1187,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2ac4133" class="outline-4">
|
||||
<h4 id="org2ac4133"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org25afe31" class="outline-4">
|
||||
<h4 id="org25afe31"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="orge52f0e1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org398b533" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1297,8 +1297,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org929134b" class="outline-4">
|
||||
<h4 id="org929134b"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org442dce8" class="outline-4">
|
||||
<h4 id="org442dce8"><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">
|
||||
@ -1346,8 +1346,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org375a1a2" class="outline-3">
|
||||
<h3 id="org375a1a2"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-org7851e2d" class="outline-3">
|
||||
<h3 id="org7851e2d"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
<code>en_potential</code> stores the <code>en</code> potential energy
|
||||
@ -1365,8 +1365,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7a199df" class="outline-4">
|
||||
<h4 id="org7a199df"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgf92ecad" class="outline-4">
|
||||
<h4 id="orgf92ecad"><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_potential</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;">en_potential</span>);
|
||||
@ -1375,10 +1375,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org307d358" class="outline-4">
|
||||
<h4 id="org307d358"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-orge58be7b" class="outline-4">
|
||||
<h4 id="orge58be7b"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="orgf44b5b4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgee50790" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1512,8 +1512,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org29afff3" class="outline-4">
|
||||
<h4 id="org29afff3"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-orge6ff24a" class="outline-4">
|
||||
<h4 id="orge6ff24a"><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"><span style="color: #228b22;">double</span> <span style="color: #a0522d;">en_potential</span>[walk_num];
|
||||
@ -1526,14 +1526,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc95cb2a" class="outline-3">
|
||||
<h3 id="orgc95cb2a"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-orgd28ba55" class="outline-3">
|
||||
<h3 id="orgd28ba55"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:43</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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:44 -->
|
||||
<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>
|
||||
@ -324,29 +324,29 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org7102079">-</a></li>
|
||||
<li><a href="#org09dfef3">1. Decoding errors</a></li>
|
||||
<li><a href="#orgd61ee10">2. Data structure in context</a></li>
|
||||
<li><a href="#orgb6980c2">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org26aed65">4. Get the error</a></li>
|
||||
<li><a href="#org2aa851f">5. Failing</a></li>
|
||||
<li><a href="#org5a6e677">6. Last error</a>
|
||||
<li><a href="#orgc40a4fa">-</a></li>
|
||||
<li><a href="#org0fa55d9">1. Decoding errors</a></li>
|
||||
<li><a href="#orgc1285e0">2. Data structure in context</a></li>
|
||||
<li><a href="#orgc730cca">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org6cdd21b">4. Get the error</a></li>
|
||||
<li><a href="#orgfac8629">5. Failing</a></li>
|
||||
<li><a href="#org41c1f9c">6. Last error</a>
|
||||
<ul>
|
||||
<li><a href="#org04a0657">6.1. Fortran inteface</a></li>
|
||||
<li><a href="#orgc3dd47f">6.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org99cf536">7. Helper functions for debugging</a>
|
||||
<li><a href="#org4050bfd">7. Helper functions for debugging</a>
|
||||
<ul>
|
||||
<li><a href="#orgf27e4df">7.1. Fortran inteface</a></li>
|
||||
<li><a href="#org99d66c6">7.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7102079" class="outline-2">
|
||||
<h2 id="org7102079">-</h2>
|
||||
<div class="outline-text-2" id="text-org7102079">
|
||||
<div id="outline-container-orgc40a4fa" class="outline-2">
|
||||
<h2 id="orgc40a4fa">-</h2>
|
||||
<div class="outline-text-2" id="text-orgc40a4fa">
|
||||
<p>
|
||||
The library should never make the calling programs abort, nor
|
||||
perform any input/output operations. This decision has to be taken
|
||||
@ -357,7 +357,7 @@ by the developer of the code calling the library.
|
||||
All the functions return with an exit code, defined as
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org9206a84"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
<pre class="src src-c" id="orgef358a9"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -374,7 +374,7 @@ error code is returned to the program.
|
||||
Here is the complete list of exit codes.
|
||||
</p>
|
||||
|
||||
<table id="org0fc1787" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org068fa64" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -582,8 +582,8 @@ string is assumed to be large enough to contain the error message
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org09dfef3" class="outline-2">
|
||||
<h2 id="org09dfef3"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org0fa55d9" class="outline-2">
|
||||
<h2 id="org0fa55d9"><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
|
||||
@ -601,8 +601,8 @@ The text strings are extracted from the previous table.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgd61ee10" class="outline-2">
|
||||
<h2 id="orgd61ee10"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-orgc1285e0" class="outline-2">
|
||||
<h2 id="orgc1285e0"><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 internally with a maximum fixed size to avoid
|
||||
@ -625,8 +625,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb6980c2" class="outline-2">
|
||||
<h2 id="orgb6980c2"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-orgc730cca" class="outline-2">
|
||||
<h2 id="orgc730cca"><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>.
|
||||
@ -645,8 +645,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org26aed65" class="outline-2">
|
||||
<h2 id="org26aed65"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-org6cdd21b" class="outline-2">
|
||||
<h2 id="org6cdd21b"><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
|
||||
@ -665,8 +665,8 @@ function name and message is mandatory.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org2aa851f" class="outline-2">
|
||||
<h2 id="org2aa851f"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-orgfac8629" class="outline-2">
|
||||
<h2 id="orgfac8629"><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
|
||||
@ -703,8 +703,8 @@ For example, this function can be used as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5a6e677" class="outline-2">
|
||||
<h2 id="org5a6e677"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div id="outline-container-org41c1f9c" class="outline-2">
|
||||
<h2 id="org41c1f9c"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div class="outline-text-2" id="text-6">
|
||||
<p>
|
||||
Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||
@ -716,13 +716,13 @@ Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org04a0657" class="outline-3">
|
||||
<h3 id="org04a0657"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-orgc3dd47f" class="outline-3">
|
||||
<h3 id="orgc3dd47f"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org99cf536" class="outline-2">
|
||||
<h2 id="org99cf536"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div id="outline-container-org4050bfd" class="outline-2">
|
||||
<h2 id="org4050bfd"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div class="outline-text-2" id="text-7">
|
||||
<p>
|
||||
The following function prints to <code>stderr</code> an error message is the return code is
|
||||
@ -748,14 +748,14 @@ It should be used as:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf27e4df" class="outline-3">
|
||||
<h3 id="orgf27e4df"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org99d66c6" class="outline-3">
|
||||
<h3 id="org99d66c6"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:44</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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Code examples</title>
|
||||
@ -346,27 +346,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org323058c">1. Python</a>
|
||||
<li><a href="#orge08d433">1. Python</a>
|
||||
<ul>
|
||||
<li><a href="#orgc6f8c79">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
<li><a href="#org3ecb009">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7243877">2. Fortran</a>
|
||||
<li><a href="#org8667bf7">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#orgc553401">2.1. Checking errors</a></li>
|
||||
<li><a href="#orgf4ef4cc">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#org2a3ea3f">2.1. Checking errors</a></li>
|
||||
<li><a href="#org9158db3">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org323058c" class="outline-2">
|
||||
<h2 id="org323058c"><span class="section-number-2">1</span> Python</h2>
|
||||
<div id="outline-container-orge08d433" class="outline-2">
|
||||
<h2 id="orge08d433"><span class="section-number-2">1</span> Python</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orgc6f8c79" class="outline-3">
|
||||
<h3 id="orgc6f8c79"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div id="outline-container-org3ecb009" class="outline-3">
|
||||
<h3 id="org3ecb009"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
In this example, we will compute numerically the overlap
|
||||
@ -542,12 +542,12 @@ and finally we compute the overlap between all the MOs as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7243877" class="outline-2">
|
||||
<h2 id="org7243877"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-org8667bf7" class="outline-2">
|
||||
<h2 id="org8667bf7"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgc553401" class="outline-3">
|
||||
<h3 id="orgc553401"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-org2a3ea3f" class="outline-3">
|
||||
<h3 id="org2a3ea3f"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
All QMCkl functions return an error code. A convenient way to handle
|
||||
@ -556,7 +556,7 @@ error in text format and exits the program.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90" id="orgb7c00fd"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="org0af7c78"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>
|
||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
||||
<span style="color: #228b22;">integer</span>(qmckl_exit_code), <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> rc</span>
|
||||
@ -574,8 +574,8 @@ error in text format and exits the program.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf4ef4cc" class="outline-3">
|
||||
<h3 id="orgf4ef4cc"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-org9158db3" class="outline-3">
|
||||
<h3 id="org9158db3"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The following program, in Fortran, computes the values of an atomic
|
||||
@ -794,7 +794,7 @@ We finally print the value and Laplacian of the AO:
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:43</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:44 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Local Energy</title>
|
||||
@ -346,44 +346,44 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgee06e0b">1. Context</a>
|
||||
<li><a href="#orge0f5af9">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org133b7cc">1.1. Data structure</a></li>
|
||||
<li><a href="#org9ba2eac">1.2. Access functions</a></li>
|
||||
<li><a href="#orgf72cdf0">1.1. Data structure</a></li>
|
||||
<li><a href="#org5bd760b">1.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7e43b86">2. Computation</a>
|
||||
<li><a href="#org44aa9af">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org380a711">2.1. Kinetic energy</a>
|
||||
<li><a href="#org23fa254">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgc74cd0f">2.1.1. Get</a></li>
|
||||
<li><a href="#org55637e8">2.1.2. Provide</a></li>
|
||||
<li><a href="#org1df0830">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org5569f93">2.1.4. Test</a></li>
|
||||
<li><a href="#org310e533">2.1.1. Get</a></li>
|
||||
<li><a href="#org4b51889">2.1.2. Provide</a></li>
|
||||
<li><a href="#org42e1704">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org18024b9">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9677fb6">2.2. Potential energy</a>
|
||||
<li><a href="#org95dc6e8">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#org6936499">2.2.1. Get</a></li>
|
||||
<li><a href="#orgb704f60">2.2.2. Provide</a></li>
|
||||
<li><a href="#org690c23c">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org61a00e6">2.2.4. Test</a></li>
|
||||
<li><a href="#org6da75d6">2.2.1. Get</a></li>
|
||||
<li><a href="#org6a87bda">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgc335022">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org1b3417d">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1a3ba9a">2.3. Local energy</a>
|
||||
<li><a href="#org697febc">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#orga0e7213">2.3.1. Get</a></li>
|
||||
<li><a href="#org86b8013">2.3.2. Provide</a></li>
|
||||
<li><a href="#orgc666f93">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org9ecfea9">2.3.4. Test</a></li>
|
||||
<li><a href="#orgf409fcc">2.3.1. Get</a></li>
|
||||
<li><a href="#orgcebc68a">2.3.2. Provide</a></li>
|
||||
<li><a href="#org1b0f3c4">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#orgf42afc7">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org84c4780">2.4. Drift vector</a>
|
||||
<li><a href="#orge2474f2">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#orgffa116b">2.4.1. Get</a></li>
|
||||
<li><a href="#orgc51068c">2.4.2. Provide</a></li>
|
||||
<li><a href="#orgd652fb1">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#orgae6f8ae">2.4.4. Test</a></li>
|
||||
<li><a href="#org929112b">2.4.1. Get</a></li>
|
||||
<li><a href="#org6991add">2.4.2. Provide</a></li>
|
||||
<li><a href="#org495221f">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org28ab5d0">2.4.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -392,8 +392,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgee06e0b" class="outline-2">
|
||||
<h2 id="orgee06e0b"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orge0f5af9" class="outline-2">
|
||||
<h2 id="orge0f5af9"><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:
|
||||
@ -466,8 +466,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org133b7cc" class="outline-3">
|
||||
<h3 id="org133b7cc"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgf72cdf0" class="outline-3">
|
||||
<h3 id="orgf72cdf0"><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_local_energy_struct</span> {
|
||||
@ -501,8 +501,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9ba2eac" class="outline-3">
|
||||
<h3 id="org9ba2eac"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org5bd760b" class="outline-3">
|
||||
<h3 id="org5bd760b"><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 local energy have been provided, the following
|
||||
@ -517,12 +517,12 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7e43b86" class="outline-2">
|
||||
<h2 id="org7e43b86"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org44aa9af" class="outline-2">
|
||||
<h2 id="org44aa9af"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org380a711" class="outline-3">
|
||||
<h3 id="org380a711"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-org23fa254" class="outline-3">
|
||||
<h3 id="org23fa254"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
Where the kinetic energy is given as:
|
||||
@ -546,8 +546,8 @@ case is given as follows:
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc74cd0f" class="outline-4">
|
||||
<h4 id="orgc74cd0f"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org310e533" class="outline-4">
|
||||
<h4 id="org310e533"><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_kinetic_energy</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;">kinetic_energy</span>);
|
||||
@ -556,14 +556,14 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org55637e8" class="outline-4">
|
||||
<h4 id="org55637e8"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org4b51889" class="outline-4">
|
||||
<h4 id="org4b51889"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1df0830" class="outline-4">
|
||||
<h4 id="org1df0830"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-org42e1704" class="outline-4">
|
||||
<h4 id="org42e1704"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orgb9ea3d8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org88c0d8f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -792,12 +792,12 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5569f93" class="outline-4">
|
||||
<h4 id="org5569f93"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-org18024b9" class="outline-4">
|
||||
<h4 id="org18024b9"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org9677fb6" class="outline-3">
|
||||
<h3 id="org9677fb6"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-org95dc6e8" class="outline-3">
|
||||
<h3 id="org95dc6e8"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The potential energy is the sum of all the following terms
|
||||
@ -833,8 +833,8 @@ contributions.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6936499" class="outline-4">
|
||||
<h4 id="org6936499"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org6da75d6" class="outline-4">
|
||||
<h4 id="org6da75d6"><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_potential_energy</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;">potential_energy</span>);
|
||||
@ -843,14 +843,14 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb704f60" class="outline-4">
|
||||
<h4 id="orgb704f60"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org6a87bda" class="outline-4">
|
||||
<h4 id="org6a87bda"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org690c23c" class="outline-4">
|
||||
<h4 id="org690c23c"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-orgc335022" class="outline-4">
|
||||
<h4 id="orgc335022"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org7cea4e1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org903ea4b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -977,12 +977,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org61a00e6" class="outline-4">
|
||||
<h4 id="org61a00e6"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-org1b3417d" class="outline-4">
|
||||
<h4 id="org1b3417d"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org1a3ba9a" class="outline-3">
|
||||
<h3 id="org1a3ba9a"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-org697febc" class="outline-3">
|
||||
<h3 id="org697febc"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
The local energy is the sum of kinetic and potential energies.
|
||||
@ -996,8 +996,8 @@ E_L = KE + PE
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orga0e7213" class="outline-4">
|
||||
<h4 id="orga0e7213"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-orgf409fcc" class="outline-4">
|
||||
<h4 id="orgf409fcc"><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_local_energy</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;">local_energy</span>, <span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
||||
@ -1006,14 +1006,14 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org86b8013" class="outline-4">
|
||||
<h4 id="org86b8013"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-orgcebc68a" class="outline-4">
|
||||
<h4 id="orgcebc68a"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc666f93" class="outline-4">
|
||||
<h4 id="orgc666f93"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-org1b0f3c4" class="outline-4">
|
||||
<h4 id="org1b0f3c4"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<table id="orga1ff6bc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3b9509b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1109,12 +1109,12 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9ecfea9" class="outline-4">
|
||||
<h4 id="org9ecfea9"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-orgf42afc7" class="outline-4">
|
||||
<h4 id="orgf42afc7"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org84c4780" class="outline-3">
|
||||
<h3 id="org84c4780"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-orge2474f2" class="outline-3">
|
||||
<h3 id="orge2474f2"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
The drift vector is calculated as the ration of the gradient
|
||||
@ -1128,8 +1128,8 @@ with the determinant of the wavefunction.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgffa116b" class="outline-4">
|
||||
<h4 id="orgffa116b"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org929112b" class="outline-4">
|
||||
<h4 id="org929112b"><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_drift_vector</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;">drift_vector</span>);
|
||||
@ -1138,14 +1138,14 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc51068c" class="outline-4">
|
||||
<h4 id="orgc51068c"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-org6991add" class="outline-4">
|
||||
<h4 id="org6991add"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd652fb1" class="outline-4">
|
||||
<h4 id="orgd652fb1"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-org495221f" class="outline-4">
|
||||
<h4 id="org495221f"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<table id="org7ecc560" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc5bd20e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1366,15 +1366,15 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgae6f8ae" class="outline-4">
|
||||
<h4 id="orgae6f8ae"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org28ab5d0" class="outline-4">
|
||||
<h4 id="org28ab5d0"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:44</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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:44 -->
|
||||
<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>
|
||||
@ -324,16 +324,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org16e8ff7">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#orge04c575">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org7b909a2">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org1a42c05">4. Get the size of a memory block</a></li>
|
||||
<li><a href="#org12e1321">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org9ddf43e">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org0288714">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org7a56c84">4. Get the size of a memory block</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org16e8ff7" class="outline-2">
|
||||
<h2 id="org16e8ff7"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-org12e1321" class="outline-2">
|
||||
<h2 id="org12e1321"><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
|
||||
@ -375,8 +375,8 @@ array, and the number of allocated blocks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge04c575" class="outline-2">
|
||||
<h2 id="orge04c575"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org9ddf43e" class="outline-2">
|
||||
<h2 id="org9ddf43e"><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
|
||||
@ -385,8 +385,8 @@ passing an instance of a <code>qmckl_memory_info_struct</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b909a2" class="outline-2">
|
||||
<h2 id="org7b909a2"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-org0288714" class="outline-2">
|
||||
<h2 id="org0288714"><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
|
||||
@ -646,8 +646,8 @@ successful deallocation of the memory block.</li>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org1a42c05" class="outline-2">
|
||||
<h2 id="org1a42c05"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div id="outline-container-org7a56c84" class="outline-2">
|
||||
<h2 id="org7a56c84"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
All the blocks allocated with <code>qmckl_malloc</code> keep track of how many
|
||||
@ -742,7 +742,7 @@ rc = qmckl_context_destroy(context);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:44</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
186
qmckl_mo.html
186
qmckl_mo.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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Molecular Orbitals</title>
|
||||
@ -346,68 +346,68 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgf2d476e">1. Context</a>
|
||||
<li><a href="#org5e39904">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org88e744f">1.1. Data structure</a></li>
|
||||
<li><a href="#orgb347537">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org1e4fe64">1.3. Cusp adjsutment functions</a></li>
|
||||
<li><a href="#orgb435f5c">1.4. Access functions</a>
|
||||
<li><a href="#org8016885">1.1. Data structure</a></li>
|
||||
<li><a href="#org2342065">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org7f6e97c">1.3. Cusp adjsutment functions</a></li>
|
||||
<li><a href="#orgc3a293b">1.4. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org6156bf5">1.4.1. Fortran interfaces</a></li>
|
||||
<li><a href="#org3860681">1.4.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org849d2e5">1.5. Update</a>
|
||||
<li><a href="#org5c2b041">1.5. Update</a>
|
||||
<ul>
|
||||
<li><a href="#orga5380af">1.5.1. Fortran interface</a></li>
|
||||
<li><a href="#orgbf93312">1.5.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7c182ee">2. Computation</a>
|
||||
<li><a href="#org62e325b">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org066fe00">2.1. Parameters of the cusp-correction functions</a></li>
|
||||
<li><a href="#org04340ad">2.2. Computation of MOs: values only</a>
|
||||
<li><a href="#org5c251a0">2.1. Parameters of the cusp-correction functions</a></li>
|
||||
<li><a href="#orga70e903">2.2. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org7c23b19">2.2.1. Get</a></li>
|
||||
<li><a href="#org843cbf1">2.2.2. Provide</a></li>
|
||||
<li><a href="#org292cdc3">2.2.3. Compute</a></li>
|
||||
<li><a href="#org6c5235a">2.2.4. HPC version</a></li>
|
||||
<li><a href="#org94b2357">2.2.1. Get</a></li>
|
||||
<li><a href="#org6442162">2.2.2. Provide</a></li>
|
||||
<li><a href="#org60b1211">2.2.3. Compute</a></li>
|
||||
<li><a href="#orgb41621d">2.2.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org985db43">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#org21e548b">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org4e53e40">2.3.1. Get</a></li>
|
||||
<li><a href="#orgb13a26f">2.3.2. Provide</a></li>
|
||||
<li><a href="#orga7e6552">2.3.3. Compute</a></li>
|
||||
<li><a href="#org8ff7c4c">2.3.4. HPC version</a></li>
|
||||
<li><a href="#orge5d1a28">2.3.1. Get</a></li>
|
||||
<li><a href="#org8fcf621">2.3.2. Provide</a></li>
|
||||
<li><a href="#org45e48d9">2.3.3. Compute</a></li>
|
||||
<li><a href="#org6755254">2.3.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org933bc85">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||
<li><a href="#orgf3b3626">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org4514659">2.4.1. Compute</a></li>
|
||||
<li><a href="#orgbb808ce">2.4.2. HPC version</a></li>
|
||||
<li><a href="#orgff872de">2.4.1. Compute</a></li>
|
||||
<li><a href="#org733429f">2.4.2. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf403bc2">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#orged42ef7">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org49dd3e7">2.5.1. Compute</a></li>
|
||||
<li><a href="#org4ead9de">2.5.2. HPC version</a></li>
|
||||
<li><a href="#orgc5f2282">2.5.1. Compute</a></li>
|
||||
<li><a href="#org943aed1">2.5.2. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga5e9494">2.6. Rescaling of MO coefficients</a>
|
||||
<li><a href="#org7c6f0ff">2.6. Rescaling of MO coefficients</a>
|
||||
<ul>
|
||||
<li><a href="#org1bc66a8">2.6.1. Fortran interface</a></li>
|
||||
<li><a href="#org7d8260d">2.6.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org75d4967">2.7. Test</a></li>
|
||||
<li><a href="#org23a4474">2.7. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf2d476e" class="outline-2">
|
||||
<h2 id="orgf2d476e"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org5e39904" class="outline-2">
|
||||
<h2 id="org5e39904"><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:
|
||||
@ -486,8 +486,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org88e744f" class="outline-3">
|
||||
<h3 id="org88e744f"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org8016885" class="outline-3">
|
||||
<h3 id="org8016885"><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_mo_basis_struct</span> {
|
||||
@ -544,8 +544,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb347537" class="outline-3">
|
||||
<h3 id="orgb347537"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org2342065" class="outline-3">
|
||||
<h3 id="org2342065"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -566,8 +566,8 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1e4fe64" class="outline-3">
|
||||
<h3 id="org1e4fe64"><span class="section-number-3">1.3</span> Cusp adjsutment functions</h3>
|
||||
<div id="outline-container-org7f6e97c" class="outline-3">
|
||||
<h3 id="org7f6e97c"><span class="section-number-3">1.3</span> Cusp adjsutment functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To activate the cusp adjustment, the user must enter the radius of
|
||||
@ -582,8 +582,8 @@ of the non-\(s\) AOs at the center.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb435f5c" class="outline-3">
|
||||
<h3 id="orgb435f5c"><span class="section-number-3">1.4</span> Access functions</h3>
|
||||
<div id="outline-container-orgc3a293b" class="outline-3">
|
||||
<h3 id="orgc3a293b"><span class="section-number-3">1.4</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
When all the data for the AOs have been provided, the following
|
||||
@ -596,13 +596,13 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6156bf5" class="outline-4">
|
||||
<h4 id="org6156bf5"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-org3860681" class="outline-4">
|
||||
<h4 id="org3860681"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org849d2e5" class="outline-3">
|
||||
<h3 id="org849d2e5"><span class="section-number-3">1.5</span> Update</h3>
|
||||
<div id="outline-container-org5c2b041" class="outline-3">
|
||||
<h3 id="org5c2b041"><span class="section-number-3">1.5</span> Update</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
It may be desirable to remove certain molecular orbitals (MOs) that
|
||||
@ -629,25 +629,25 @@ calculation. If the integer is non-zero, the MO will be kept.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga5380af" class="outline-4">
|
||||
<h4 id="orga5380af"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-orgbf93312" class="outline-4">
|
||||
<h4 id="orgbf93312"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7c182ee" class="outline-2">
|
||||
<h2 id="org7c182ee"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org62e325b" class="outline-2">
|
||||
<h2 id="org62e325b"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org066fe00" class="outline-3">
|
||||
<h3 id="org066fe00"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||
<div id="outline-container-org5c251a0" class="outline-3">
|
||||
<h3 id="org5c251a0"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||
</div>
|
||||
<div id="outline-container-org04340ad" class="outline-3">
|
||||
<h3 id="org04340ad"><span class="section-number-3">2.2</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-orga70e903" class="outline-3">
|
||||
<h3 id="orga70e903"><span class="section-number-3">2.2</span> Computation of MOs: values only</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div id="outline-container-org7c23b19" class="outline-4">
|
||||
<h4 id="org7c23b19"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org94b2357" class="outline-4">
|
||||
<h4 id="org94b2357"><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>
|
||||
@ -671,8 +671,8 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org843cbf1" class="outline-4">
|
||||
<h4 id="org843cbf1"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org6442162" class="outline-4">
|
||||
<h4 id="org6442162"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div class="outline-text-4" id="text-2-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_provide_mo_basis_mo_value</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -757,10 +757,10 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org292cdc3" class="outline-4">
|
||||
<h4 id="org292cdc3"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-org60b1211" class="outline-4">
|
||||
<h4 id="org60b1211"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="orgdd522eb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb175399" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -915,8 +915,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6c5235a" class="outline-4">
|
||||
<h4 id="org6c5235a"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-orgb41621d" class="outline-4">
|
||||
<h4 id="orgb41621d"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -1009,12 +1009,12 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org985db43" class="outline-3">
|
||||
<h3 id="org985db43"><span class="section-number-3">2.3</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-org21e548b" class="outline-3">
|
||||
<h3 id="org21e548b"><span class="section-number-3">2.3</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
</div>
|
||||
<div id="outline-container-org4e53e40" class="outline-4">
|
||||
<h4 id="org4e53e40"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-orge5d1a28" class="outline-4">
|
||||
<h4 id="orge5d1a28"><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>
|
||||
@ -1038,8 +1038,8 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb13a26f" class="outline-4">
|
||||
<h4 id="orgb13a26f"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org8fcf621" class="outline-4">
|
||||
<h4 id="org8fcf621"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_provide_mo_basis_mo_vgl</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -1123,10 +1123,10 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga7e6552" class="outline-4">
|
||||
<h4 id="orga7e6552"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||
<div id="outline-container-org45e48d9" class="outline-4">
|
||||
<h4 id="org45e48d9"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<table id="orga75db36" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdf0fb75" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1299,8 +1299,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8ff7c4c" class="outline-4">
|
||||
<h4 id="org8ff7c4c"><span class="section-number-4">2.3.4</span> HPC version</h4>
|
||||
<div id="outline-container-org6755254" class="outline-4">
|
||||
<h4 id="org6755254"><span class="section-number-4">2.3.4</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-3-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -1446,14 +1446,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org933bc85" class="outline-3">
|
||||
<h3 id="org933bc85"><span class="section-number-3">2.4</span> Computation of cusp-corrected MOs: values only</h3>
|
||||
<div id="outline-container-orgf3b3626" class="outline-3">
|
||||
<h3 id="orgf3b3626"><span class="section-number-3">2.4</span> Computation of cusp-corrected MOs: values only</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
</div>
|
||||
<div id="outline-container-org4514659" class="outline-4">
|
||||
<h4 id="org4514659"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||
<div id="outline-container-orgff872de" class="outline-4">
|
||||
<h4 id="orgff872de"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<table id="orgecda581" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org88c8886" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1692,8 +1692,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb808ce" class="outline-4">
|
||||
<h4 id="orgbb808ce"><span class="section-number-4">2.4.2</span> HPC version</h4>
|
||||
<div id="outline-container-org733429f" class="outline-4">
|
||||
<h4 id="org733429f"><span class="section-number-4">2.4.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -1818,14 +1818,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf403bc2" class="outline-3">
|
||||
<h3 id="orgf403bc2"><span class="section-number-3">2.5</span> Computation of cusp-corrected MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-orged42ef7" class="outline-3">
|
||||
<h3 id="orged42ef7"><span class="section-number-3">2.5</span> Computation of cusp-corrected MOs: values, gradient, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
</div>
|
||||
<div id="outline-container-org49dd3e7" class="outline-4">
|
||||
<h4 id="org49dd3e7"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||
<div id="outline-container-orgc5f2282" class="outline-4">
|
||||
<h4 id="orgc5f2282"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<table id="org86038c9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3896e62" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2121,8 +2121,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4ead9de" class="outline-4">
|
||||
<h4 id="org4ead9de"><span class="section-number-4">2.5.2</span> HPC version</h4>
|
||||
<div id="outline-container-org943aed1" class="outline-4">
|
||||
<h4 id="org943aed1"><span class="section-number-4">2.5.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-5-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -2323,8 +2323,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga5e9494" class="outline-3">
|
||||
<h3 id="orga5e9494"><span class="section-number-3">2.6</span> Rescaling of MO coefficients</h3>
|
||||
<div id="outline-container-org7c6f0ff" class="outline-3">
|
||||
<h3 id="org7c6f0ff"><span class="section-number-3">2.6</span> Rescaling of MO coefficients</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
When evaluating Slater determinants, the value of the determinants
|
||||
@ -2341,19 +2341,19 @@ correct range.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1bc66a8" class="outline-4">
|
||||
<h4 id="org1bc66a8"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org7d8260d" class="outline-4">
|
||||
<h4 id="org7d8260d"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org75d4967" class="outline-3">
|
||||
<h3 id="org75d4967"><span class="section-number-3">2.7</span> Test</h3>
|
||||
<div id="outline-container-org23a4474" class="outline-3">
|
||||
<h3 id="org23a4474"><span class="section-number-3">2.7</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:43</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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:44 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Nucleus</title>
|
||||
@ -346,28 +346,28 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc99d786">1. Context</a>
|
||||
<li><a href="#org8bc2e44">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgc55d270">1.1. Data structure</a></li>
|
||||
<li><a href="#orga465a0d">1.2. Access functions</a></li>
|
||||
<li><a href="#org4762546">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orge15dfb0">1.4. Test</a></li>
|
||||
<li><a href="#orga6b556b">1.1. Data structure</a></li>
|
||||
<li><a href="#orgb561077">1.2. Access functions</a></li>
|
||||
<li><a href="#orgb01f4bd">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgca16b5a">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8701743">2. Computation</a>
|
||||
<li><a href="#org63ca214">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orge144d39">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#org61aacea">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org66a7a08">2.1.1. Get</a></li>
|
||||
<li><a href="#org6d9b2b4">2.1.2. Compute</a></li>
|
||||
<li><a href="#org55eb743">2.1.3. Test</a></li>
|
||||
<li><a href="#orga233462">2.1.1. Get</a></li>
|
||||
<li><a href="#org3b21413">2.1.2. Compute</a></li>
|
||||
<li><a href="#org4ed3f46">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org120be2b">2.2. Nuclear repulsion energy</a>
|
||||
<li><a href="#org8f9fb77">2.2. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#org371dbb1">2.2.1. Get</a></li>
|
||||
<li><a href="#org0a9e672">2.2.2. Compute</a></li>
|
||||
<li><a href="#org941f89c">2.2.3. Test</a></li>
|
||||
<li><a href="#org9e3d79d">2.2.1. Get</a></li>
|
||||
<li><a href="#orge3271c8">2.2.2. Compute</a></li>
|
||||
<li><a href="#org6e4f7bc">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -376,8 +376,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc99d786" class="outline-2">
|
||||
<h2 id="orgc99d786"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org8bc2e44" class="outline-2">
|
||||
<h2 id="org8bc2e44"><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:
|
||||
@ -474,8 +474,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc55d270" class="outline-3">
|
||||
<h3 id="orgc55d270"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orga6b556b" class="outline-3">
|
||||
<h3 id="orga6b556b"><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> {
|
||||
@ -529,8 +529,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga465a0d" class="outline-3">
|
||||
<h3 id="orga465a0d"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgb561077" class="outline-3">
|
||||
<h3 id="orgb561077"><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
|
||||
@ -544,8 +544,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4762546" class="outline-3">
|
||||
<h3 id="org4762546"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgb01f4bd" class="outline-3">
|
||||
<h3 id="orgb01f4bd"><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
|
||||
@ -591,8 +591,8 @@ are be given in atomic units.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge15dfb0" class="outline-3">
|
||||
<h3 id="orge15dfb0"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgca16b5a" class="outline-3">
|
||||
<h3 id="orgca16b5a"><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;">double</span>* <span style="color: #a0522d;">nucl_charge</span> = chbrclf_charge;
|
||||
@ -661,8 +661,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2, chbrclf_nucl_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8701743" class="outline-2">
|
||||
<h2 id="org8701743"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org63ca214" class="outline-2">
|
||||
<h2 id="org63ca214"><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
|
||||
@ -675,12 +675,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge144d39" class="outline-3">
|
||||
<h3 id="orge144d39"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-org61aacea" class="outline-3">
|
||||
<h3 id="org61aacea"><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-org66a7a08" class="outline-4">
|
||||
<h4 id="org66a7a08"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orga233462" class="outline-4">
|
||||
<h4 id="orga233462"><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>
|
||||
@ -692,10 +692,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d9b2b4" class="outline-4">
|
||||
<h4 id="org6d9b2b4"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org3b21413" class="outline-4">
|
||||
<h4 id="org3b21413"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgf5ff9a6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3431c47" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -773,8 +773,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org55eb743" class="outline-4">
|
||||
<h4 id="org55eb743"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org4ed3f46" class="outline-4">
|
||||
<h4 id="org4ed3f46"><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> */
|
||||
@ -793,8 +793,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org120be2b" class="outline-3">
|
||||
<h3 id="org120be2b"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-org8f9fb77" class="outline-3">
|
||||
<h3 id="org8f9fb77"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
\[
|
||||
@ -803,8 +803,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org371dbb1" class="outline-4">
|
||||
<h4 id="org371dbb1"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org9e3d79d" class="outline-4">
|
||||
<h4 id="org9e3d79d"><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_repulsion</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;">energy</span>);
|
||||
@ -813,10 +813,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a9e672" class="outline-4">
|
||||
<h4 id="org0a9e672"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orge3271c8" class="outline-4">
|
||||
<h4 id="orge3271c8"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgef2ed76" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb19d1b2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -906,8 +906,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org941f89c" class="outline-4">
|
||||
<h4 id="org941f89c"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org6e4f7bc" class="outline-4">
|
||||
<h4 id="org6e4f7bc"><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> */
|
||||
@ -927,7 +927,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: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:44</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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:43 -->
|
||||
<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>
|
||||
@ -346,16 +346,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org0064cbb">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org8a64020">2. Precision</a></li>
|
||||
<li><a href="#orgb02da8f">3. Range</a></li>
|
||||
<li><a href="#org1905bde">4. Helper functions</a></li>
|
||||
<li><a href="#org278ec6c">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#orge9f34ba">2. Precision</a></li>
|
||||
<li><a href="#org68fb288">3. Range</a></li>
|
||||
<li><a href="#orgfbaf07e">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0064cbb" class="outline-2">
|
||||
<h2 id="org0064cbb"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org278ec6c" class="outline-2">
|
||||
<h2 id="org278ec6c"><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
|
||||
@ -366,7 +366,7 @@ Arithmetic (IEEE 754),
|
||||
refers to the number of exponent bits.
|
||||
</p>
|
||||
|
||||
<table id="org37b4233" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0d6577b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -410,8 +410,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8a64020" class="outline-2">
|
||||
<h2 id="org8a64020"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-orge9f34ba" class="outline-2">
|
||||
<h2 id="orge9f34ba"><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
|
||||
@ -498,8 +498,8 @@ numerical precision in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb02da8f" class="outline-2">
|
||||
<h2 id="orgb02da8f"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-org68fb288" class="outline-2">
|
||||
<h2 id="org68fb288"><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
|
||||
@ -574,8 +574,8 @@ range in a given context.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org1905bde" class="outline-2">
|
||||
<h2 id="org1905bde"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-orgfbaf07e" class="outline-2">
|
||||
<h2 id="orgfbaf07e"><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.
|
||||
@ -594,7 +594,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: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:43</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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Point</title>
|
||||
@ -346,25 +346,25 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgaa0ef63">1. Context</a>
|
||||
<li><a href="#orgf4bc15d">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org20a2051">1.1. Data structure</a></li>
|
||||
<li><a href="#org20c0cbb">1.2. Access functions</a>
|
||||
<li><a href="#orga510bea">1.1. Data structure</a></li>
|
||||
<li><a href="#org3433db7">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org1fe0d9d">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org35139e8">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#org0db97e7">1.2.1. Number of points</a></li>
|
||||
<li><a href="#orgdcc14a6">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9bca6b4">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org8e51f72">1.4. Test</a></li>
|
||||
<li><a href="#org30fcc19">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org82855cd">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaa0ef63" class="outline-2">
|
||||
<h2 id="orgaa0ef63"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgf4bc15d" class="outline-2">
|
||||
<h2 id="orgf4bc15d"><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:
|
||||
@ -414,8 +414,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org20a2051" class="outline-3">
|
||||
<h3 id="org20a2051"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orga510bea" class="outline-3">
|
||||
<h3 id="orga510bea"><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_point_struct</span> {
|
||||
@ -451,8 +451,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org20c0cbb" class="outline-3">
|
||||
<h3 id="org20c0cbb"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org3433db7" class="outline-3">
|
||||
<h3 id="org3433db7"><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
|
||||
@ -463,8 +463,8 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1fe0d9d" class="outline-4">
|
||||
<h4 id="org1fe0d9d"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-org0db97e7" class="outline-4">
|
||||
<h4 id="org0db97e7"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div class="outline-text-4" id="text-1-2-1">
|
||||
<p>
|
||||
Returns the number of points stored in the context.
|
||||
@ -486,8 +486,8 @@ Returns the number of points stored in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org35139e8" class="outline-4">
|
||||
<h4 id="org35139e8"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-orgdcc14a6" class="outline-4">
|
||||
<h4 id="orgdcc14a6"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-2-2">
|
||||
<p>
|
||||
Returns the point coordinates as sequences of (x,y,z).
|
||||
@ -515,8 +515,8 @@ The pointer is assumed to point on a memory block of size
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org9bca6b4" class="outline-3">
|
||||
<h3 id="org9bca6b4"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org30fcc19" class="outline-3">
|
||||
<h3 id="org30fcc19"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
When the data is set in the context, if the arrays are large
|
||||
@ -655,8 +655,8 @@ Copy a sequence of <code>num</code> points \((x,y,z)\) into the context.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org8e51f72" class="outline-3">
|
||||
<h3 id="org8e51f72"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org82855cd" class="outline-3">
|
||||
<h3 id="org82855cd"><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> */
|
||||
@ -715,7 +715,7 @@ rc = qmckl_get_point (context, <span style="color: #8b2252;">'N'</span>, coord3,
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:43</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>
|
||||
<!-- 2023-06-14 Wed 09:47 -->
|
||||
<!-- 2023-06-21 Wed 12:44 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Sherman-Morrison-Woodbury</title>
|
||||
@ -346,76 +346,76 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org4b1c5b0">1. Headers</a></li>
|
||||
<li><a href="#org6708b6e">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#org17a4f84">1. Headers</a></li>
|
||||
<li><a href="#org7edbc28">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#orgf45872b">2.1. <code>qmckl_sm_naive</code></a>
|
||||
<li><a href="#org7ff60b4">2.1. <code>qmckl_sm_naive</code></a>
|
||||
<ul>
|
||||
<li><a href="#org860f3b5">2.1.1. Introduction</a></li>
|
||||
<li><a href="#orge8ddf30">2.1.2. API</a></li>
|
||||
<li><a href="#orgb396d03">2.1.3. Requirements</a></li>
|
||||
<li><a href="#orgd8f734a">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org5cc9812">2.1.1. Introduction</a></li>
|
||||
<li><a href="#org168c5d0">2.1.2. API</a></li>
|
||||
<li><a href="#orga1bbb29">2.1.3. Requirements</a></li>
|
||||
<li><a href="#org3ce2429">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orgaf4c1b8">2.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#org98e4803">2.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6869156">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgc296f73">2.1.6. C sources</a></li>
|
||||
<li><a href="#org2b962bf">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org5420a40">2.1.8. Performance</a></li>
|
||||
<li><a href="#org240d0fd">2.1.9. Tests</a></li>
|
||||
<li><a href="#org1cee09c">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org221501b">2.1.6. C sources</a></li>
|
||||
<li><a href="#org520971d">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgbce88b6">2.1.8. Performance</a></li>
|
||||
<li><a href="#orga9b72c5">2.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1ed53ed">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||
<li><a href="#org5b05261">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||
<ul>
|
||||
<li><a href="#org17b0043">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||
<li><a href="#orge2f2547">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||
<ul>
|
||||
<li><a href="#org8ed9419">3.1.1. Introduction</a></li>
|
||||
<li><a href="#org30aaa05">3.1.2. API</a></li>
|
||||
<li><a href="#orgbfe4552">3.1.3. Requirements</a></li>
|
||||
<li><a href="#org3556c4a">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org14cbeb8">3.1.1. Introduction</a></li>
|
||||
<li><a href="#org580b13b">3.1.2. API</a></li>
|
||||
<li><a href="#orgb18d3de">3.1.3. Requirements</a></li>
|
||||
<li><a href="#org8fab6b0">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orge781f41">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#orgd5cfc9a">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org32049a0">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org23d9838">3.1.6. C sources</a></li>
|
||||
<li><a href="#org1cc37a6">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org48fbcba">3.1.8. Performance</a></li>
|
||||
<li><a href="#org18f3c70">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org2ecf90b">3.1.6. C sources</a></li>
|
||||
<li><a href="#org2fc9465">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org12027c6">3.1.8. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9a5e14b">4. Sherman-Morrison with Slagel Splitting</a>
|
||||
<li><a href="#org379d2bd">4. Sherman-Morrison with Slagel Splitting</a>
|
||||
<ul>
|
||||
<li><a href="#orgc03999d">4.1. <code>qmckl_sm_splitting</code></a>
|
||||
<li><a href="#org40fed87">4.1. <code>qmckl_sm_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org19afd35">4.1.1. Introduction</a></li>
|
||||
<li><a href="#org9170388">4.1.2. API</a></li>
|
||||
<li><a href="#orgfc4bb45">4.1.3. Requirements</a></li>
|
||||
<li><a href="#org2d65d65">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org7911d81">4.1.1. Introduction</a></li>
|
||||
<li><a href="#orgd50c021">4.1.2. API</a></li>
|
||||
<li><a href="#orgebbcd1d">4.1.3. Requirements</a></li>
|
||||
<li><a href="#orgfd7cbb6">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orgf96bdaf">4.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#org06f3560">4.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5b1c387">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgd8b620e">4.1.6. C source</a></li>
|
||||
<li><a href="#org4bcff86">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgfec54e0">4.1.8. Performance…</a></li>
|
||||
<li><a href="#org205dc97">4.1.9. Test</a></li>
|
||||
<li><a href="#org5ccd4fc">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org0dfa19e">4.1.6. C source</a></li>
|
||||
<li><a href="#org1e60a60">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgc1b9d6e">4.1.8. Performance…</a></li>
|
||||
<li><a href="#org752da66">4.1.9. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8527ce0">5. End of files</a></li>
|
||||
<li><a href="#org36baa46">5. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4b1c5b0" class="outline-2">
|
||||
<h2 id="org4b1c5b0"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-org17a4f84" class="outline-2">
|
||||
<h2 id="org17a4f84"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;">"qmckl.h"</span>
|
||||
@ -437,17 +437,17 @@ This is the range that determines the how many high performance kernel instantce
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org6708b6e" class="outline-2">
|
||||
<h2 id="org6708b6e"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-org7edbc28" class="outline-2">
|
||||
<h2 id="org7edbc28"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgf45872b" class="outline-3">
|
||||
<h3 id="orgf45872b"><span class="section-number-3">2.1</span> <code>qmckl_sm_naive</code></h3>
|
||||
<div id="outline-container-org7ff60b4" class="outline-3">
|
||||
<h3 id="org7ff60b4"><span class="section-number-3">2.1</span> <code>qmckl_sm_naive</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org860f3b5" class="outline-4">
|
||||
<h4 id="org860f3b5"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org5cc9812" class="outline-4">
|
||||
<h4 id="org5cc9812"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<p>
|
||||
This is the simplest of the available Sherman-Morrison-Woodbury kernels. It applies rank-1 updates one by one in
|
||||
@ -497,10 +497,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge8ddf30" class="outline-4">
|
||||
<h4 id="orge8ddf30"><span class="section-number-4">2.1.2</span> API</h4>
|
||||
<div id="outline-container-org168c5d0" class="outline-4">
|
||||
<h4 id="org168c5d0"><span class="section-number-4">2.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org35d14ba" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org29414b6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -588,8 +588,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb396d03" class="outline-4">
|
||||
<h4 id="orgb396d03"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orga1bbb29" class="outline-4">
|
||||
<h4 id="orga1bbb29"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -605,8 +605,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd8f734a" class="outline-4">
|
||||
<h4 id="orgd8f734a"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org3ce2429" class="outline-4">
|
||||
<h4 id="org3ce2429"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<p>
|
||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||
@ -700,8 +700,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaf4c1b8" class="outline-5">
|
||||
<h5 id="orgaf4c1b8"><span class="section-number-5">2.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-org98e4803" class="outline-5">
|
||||
<h5 id="org98e4803"><span class="section-number-5">2.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div class="outline-text-5" id="text-2-1-4-1">
|
||||
<p>
|
||||
The following Fortran function <code>qmckl_sm_naive_doc</code> makes sure
|
||||
@ -713,8 +713,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6869156" class="outline-4">
|
||||
<h4 id="org6869156"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org1cee09c" class="outline-4">
|
||||
<h4 id="org1cee09c"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div class="outline-text-4" id="text-2-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_naive</span> (
|
||||
@ -760,8 +760,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc296f73" class="outline-4">
|
||||
<h4 id="orgc296f73"><span class="section-number-4">2.1.6</span> C sources</h4>
|
||||
<div id="outline-container-org221501b" class="outline-4">
|
||||
<h4 id="org221501b"><span class="section-number-4">2.1.6</span> C sources</h4>
|
||||
<div class="outline-text-4" id="text-2-1-6">
|
||||
<p>
|
||||
Common includes and macros used by all the Sherman-Morrison-Woodbury kernels.
|
||||
@ -879,7 +879,7 @@ multiple of <code>SIMD_LENGTH</code>.
|
||||
<code>qmckl_exit_code qmckl_sm_naive_{Dim}</code> is a C function-template that is used to genereate instances of C fucntions based on the range given above. The advantage of this method is that for each of these instances all the dimensions and loop-bounds are known at compile time, allowing the compiler to optimize more aggressively.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org70bbcfe"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_naive_</span>{Dim}(
|
||||
<pre class="src src-c" id="org683bade"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_naive_</span>{Dim}(
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span> <span style="color: #a0522d;">N_updates</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||
@ -955,7 +955,7 @@ multiple of <code>SIMD_LENGTH</code>.
|
||||
This is the kernel generator written in Python. It uses the kernel generator range and templates defined above to generate the C kernel instances.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="org61d843e"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org616b5a0"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">static inline qmckl_exit_code qmckl_sm_naive_{Dim}(</span>
|
||||
<span style="color: #8b2252;"> const qmckl_context context,</span>
|
||||
<span style="color: #8b2252;"> const uint64_t N_updates,</span>
|
||||
@ -1039,7 +1039,7 @@ This is the kernel generator written in Python. It uses the kernel generator ran
|
||||
Python script that generated C switch cases that call individual kernel instances.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="orgfd6f8bc"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org862868d"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">case {Dim}: </span>
|
||||
<span style="color: #8b2252;"> return qmckl_sm_naive_{Dim}(context,</span>
|
||||
<span style="color: #8b2252;"> N_updates,</span>
|
||||
@ -2679,14 +2679,14 @@ Python script that generated C switch cases that call individual kernel instance
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b962bf" class="outline-4">
|
||||
<h4 id="org2b962bf"><span class="section-number-4">2.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org520971d" class="outline-4">
|
||||
<h4 id="org520971d"><span class="section-number-4">2.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div class="outline-text-4" id="text-2-1-7">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5420a40" class="outline-4">
|
||||
<h4 id="org5420a40"><span class="section-number-4">2.1.8</span> Performance</h4>
|
||||
<div id="outline-container-orgbce88b6" class="outline-4">
|
||||
<h4 id="orgbce88b6"><span class="section-number-4">2.1.8</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-8">
|
||||
<p>
|
||||
This function performs best when there is only 1 rank-1 update in the update cycle. It is
|
||||
@ -2695,8 +2695,8 @@ can never resolve a situation where applying the update causes singular behaviou
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org240d0fd" class="outline-4">
|
||||
<h4 id="org240d0fd"><span class="section-number-4">2.1.9</span> Tests</h4>
|
||||
<div id="outline-container-orga9b72c5" class="outline-4">
|
||||
<h4 id="orga9b72c5"><span class="section-number-4">2.1.9</span> Tests</h4>
|
||||
<div class="outline-text-4" id="text-2-1-9">
|
||||
<p>
|
||||
The tests for the kernels are executed on datasets that are extracted from a run of
|
||||
@ -2764,17 +2764,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org1ed53ed" class="outline-2">
|
||||
<h2 id="org1ed53ed"><span class="section-number-2">3</span> Sherman-Morrison with Slagel Splitting (core)</h2>
|
||||
<div id="outline-container-org5b05261" class="outline-2">
|
||||
<h2 id="org5b05261"><span class="section-number-2">3</span> Sherman-Morrison with Slagel Splitting (core)</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org17b0043" class="outline-3">
|
||||
<h3 id="org17b0043"><span class="section-number-3">3.1</span> <code>qmckl_sm_splitting_core</code></h3>
|
||||
<div id="outline-container-orge2f2547" class="outline-3">
|
||||
<h3 id="orge2f2547"><span class="section-number-3">3.1</span> <code>qmckl_sm_splitting_core</code></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8ed9419" class="outline-4">
|
||||
<h4 id="org8ed9419"><span class="section-number-4">3.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org14cbeb8" class="outline-4">
|
||||
<h4 id="org14cbeb8"><span class="section-number-4">3.1.1</span> Introduction</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<p>
|
||||
<code>qmckl_sm_splitting_core</code> is the inner core part of 'Sherman-Morrison with update splitting' in the next section.
|
||||
@ -2802,10 +2802,10 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org30aaa05" class="outline-4">
|
||||
<h4 id="org30aaa05"><span class="section-number-4">3.1.2</span> API</h4>
|
||||
<div id="outline-container-org580b13b" class="outline-4">
|
||||
<h4 id="org580b13b"><span class="section-number-4">3.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<table id="org6f896da" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0e0caba" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2914,8 +2914,8 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbfe4552" class="outline-4">
|
||||
<h4 id="orgbfe4552"><span class="section-number-4">3.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orgb18d3de" class="outline-4">
|
||||
<h4 id="orgb18d3de"><span class="section-number-4">3.1.3</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<ul class="org-ul">
|
||||
<li><code>LDS >= 2</code></li>
|
||||
@ -2932,8 +2932,8 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3556c4a" class="outline-4">
|
||||
<h4 id="org3556c4a"><span class="section-number-4">3.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org8fab6b0" class="outline-4">
|
||||
<h4 id="org8fab6b0"><span class="section-number-4">3.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div class="outline-text-4" id="text-3-1-4">
|
||||
<p>
|
||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||
@ -3054,8 +3054,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge781f41" class="outline-5">
|
||||
<h5 id="orge781f41"><span class="section-number-5">3.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-orgd5cfc9a" class="outline-5">
|
||||
<h5 id="orgd5cfc9a"><span class="section-number-5">3.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div class="outline-text-5" id="text-3-1-4-1">
|
||||
<p>
|
||||
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
||||
@ -3068,8 +3068,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org32049a0" class="outline-4">
|
||||
<h4 id="org32049a0"><span class="section-number-4">3.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org18f3c70" class="outline-4">
|
||||
<h4 id="org18f3c70"><span class="section-number-4">3.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div class="outline-text-4" id="text-3-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting_core</span> (
|
||||
@ -3124,8 +3124,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org23d9838" class="outline-4">
|
||||
<h4 id="org23d9838"><span class="section-number-4">3.1.6</span> C sources</h4>
|
||||
<div id="outline-container-org2ecf90b" class="outline-4">
|
||||
<h4 id="org2ecf90b"><span class="section-number-4">3.1.6</span> C sources</h4>
|
||||
<div class="outline-text-4" id="text-3-1-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting_core_hpc</span>(
|
||||
@ -3214,7 +3214,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org188f65f"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_splitting_core_</span>{Dim}(
|
||||
<pre class="src src-c" id="orgb8a7f9c"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_splitting_core_</span>{Dim}(
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #228b22;">uint64_t</span> <span style="color: #a0522d;">N_updates</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||
@ -3298,7 +3298,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="org82ac861"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org4531fd2"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">static inline qmckl_exit_code qmckl_sm_splitting_core_{Dim}(</span>
|
||||
<span style="color: #8b2252;"> const qmckl_context context,</span>
|
||||
<span style="color: #8b2252;"> uint64_t N_updates,</span>
|
||||
@ -3390,7 +3390,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="orge85eff5"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org60b74ea"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">case {Dim}: {</span>
|
||||
<span style="color: #8b2252;"> return qmckl_sm_splitting_core_{Dim}(</span>
|
||||
<span style="color: #8b2252;"> context,</span>
|
||||
@ -5379,14 +5379,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1cc37a6" class="outline-4">
|
||||
<h4 id="org1cc37a6"><span class="section-number-4">3.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org2fc9465" class="outline-4">
|
||||
<h4 id="org2fc9465"><span class="section-number-4">3.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div class="outline-text-4" id="text-3-1-7">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org48fbcba" class="outline-4">
|
||||
<h4 id="org48fbcba"><span class="section-number-4">3.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org12027c6" class="outline-4">
|
||||
<h4 id="org12027c6"><span class="section-number-4">3.1.8</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-3-1-8">
|
||||
<p>
|
||||
This function cannot be used by itself and is used in Sherman-Morrison with update splitting and Woodbury 3x3 and 2x2
|
||||
@ -5398,17 +5398,17 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org9a5e14b" class="outline-2">
|
||||
<h2 id="org9a5e14b"><span class="section-number-2">4</span> Sherman-Morrison with Slagel Splitting</h2>
|
||||
<div id="outline-container-org379d2bd" class="outline-2">
|
||||
<h2 id="org379d2bd"><span class="section-number-2">4</span> Sherman-Morrison with Slagel Splitting</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgc03999d" class="outline-3">
|
||||
<h3 id="orgc03999d"><span class="section-number-3">4.1</span> <code>qmckl_sm_splitting</code></h3>
|
||||
<div id="outline-container-org40fed87" class="outline-3">
|
||||
<h3 id="org40fed87"><span class="section-number-3">4.1</span> <code>qmckl_sm_splitting</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org19afd35" class="outline-4">
|
||||
<h4 id="org19afd35"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org7911d81" class="outline-4">
|
||||
<h4 id="org7911d81"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
||||
<div class="outline-text-4" id="text-4-1-1">
|
||||
<p>
|
||||
This is a variation on the 'Naive' Sherman-Morrison kernel. Whenever the denominator \(1+v_j^T S^{-1} u_j\) in
|
||||
@ -5432,10 +5432,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9170388" class="outline-4">
|
||||
<h4 id="org9170388"><span class="section-number-4">4.1.2</span> API</h4>
|
||||
<div id="outline-container-orgd50c021" class="outline-4">
|
||||
<h4 id="orgd50c021"><span class="section-number-4">4.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-4-1-2">
|
||||
<table id="orgb1b2a33" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1f419d4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -5523,8 +5523,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfc4bb45" class="outline-4">
|
||||
<h4 id="orgfc4bb45"><span class="section-number-4">4.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orgebbcd1d" class="outline-4">
|
||||
<h4 id="orgebbcd1d"><span class="section-number-4">4.1.3</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-4-1-3">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -5539,8 +5539,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d65d65" class="outline-4">
|
||||
<h4 id="org2d65d65"><span class="section-number-4">4.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgfd7cbb6" class="outline-4">
|
||||
<h4 id="orgfd7cbb6"><span class="section-number-4">4.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div class="outline-text-4" id="text-4-1-4">
|
||||
<p>
|
||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||
@ -5623,8 +5623,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf96bdaf" class="outline-5">
|
||||
<h5 id="orgf96bdaf"><span class="section-number-5">4.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-org06f3560" class="outline-5">
|
||||
<h5 id="org06f3560"><span class="section-number-5">4.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div class="outline-text-5" id="text-4-1-4-1">
|
||||
<p>
|
||||
The following Fortran function <code>qmckl_sm_splitting_core_doc</code> makes sure
|
||||
@ -5637,8 +5637,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5b1c387" class="outline-4">
|
||||
<h4 id="org5b1c387"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org5ccd4fc" class="outline-4">
|
||||
<h4 id="org5ccd4fc"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div class="outline-text-4" id="text-4-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting</span> (
|
||||
@ -5684,11 +5684,11 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd8b620e" class="outline-4">
|
||||
<h4 id="orgd8b620e"><span class="section-number-4">4.1.6</span> C source</h4>
|
||||
<div id="outline-container-org0dfa19e" class="outline-4">
|
||||
<h4 id="org0dfa19e"><span class="section-number-4">4.1.6</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-4-1-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="org1206191"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org3f9e789"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">case {Dim}: {</span>
|
||||
<span style="color: #8b2252;"> rc = qmckl_sm_splitting_core_{Dim}(</span>
|
||||
<span style="color: #8b2252;"> context,</span>
|
||||
@ -6096,14 +6096,14 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4bcff86" class="outline-4">
|
||||
<h4 id="org4bcff86"><span class="section-number-4">4.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org1e60a60" class="outline-4">
|
||||
<h4 id="org1e60a60"><span class="section-number-4">4.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div class="outline-text-4" id="text-4-1-7">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfec54e0" class="outline-4">
|
||||
<h4 id="orgfec54e0"><span class="section-number-4">4.1.8</span> Performance…</h4>
|
||||
<div id="outline-container-orgc1b9d6e" class="outline-4">
|
||||
<h4 id="orgc1b9d6e"><span class="section-number-4">4.1.8</span> Performance…</h4>
|
||||
<div class="outline-text-4" id="text-4-1-8">
|
||||
<p>
|
||||
This kernel performs best when there are 2 or more rank-1 update cycles and fail-rate is high.
|
||||
@ -6111,8 +6111,8 @@ This kernel performs best when there are 2 or more rank-1 update cycles and fail
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org205dc97" class="outline-4">
|
||||
<h4 id="org205dc97"><span class="section-number-4">4.1.9</span> Test</h4>
|
||||
<div id="outline-container-org752da66" class="outline-4">
|
||||
<h4 id="org752da66"><span class="section-number-4">4.1.9</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-4-1-9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates3 != <span style="color: #008b8b;">NULL</span>);
|
||||
@ -6150,8 +6150,8 @@ rc = QMCKL_SUCCESS;
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-org8527ce0" class="outline-2">
|
||||
<h2 id="org8527ce0"><span class="section-number-2">5</span> End of files</h2>
|
||||
<div id="outline-container-org36baa46" class="outline-2">
|
||||
<h2 id="org36baa46"><span class="section-number-2">5</span> End of files</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span> (<span style="color: #228b22;">qmckl_context_destroy</span>(<span style="color: #a0522d;">context</span>) == QMCKL_SUCCESS);
|
||||
@ -6165,7 +6165,7 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-06-14 Wed 09:47</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:44</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>
|
||||
<!-- 2023-06-14 Wed 09:47 -->
|
||||
<!-- 2023-06-21 Wed 12:44 -->
|
||||
<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>
|
||||
@ -246,27 +246,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgb67e5c9">1. CHBrClF</a>
|
||||
<li><a href="#org578487c">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#orgce58886">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org3bd23c5">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org657316c">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org3fbe893">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org10b76c4">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgdd6b1f8">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org80d27a6">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#orgd4f5f76">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9bafe84">2. N2</a>
|
||||
<li><a href="#orge741e1f">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#org44b0bb1">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org9893d3c">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org626e516">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#org8929b7b">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgce2712f">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org93f695c">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb67e5c9" class="outline-2">
|
||||
<h2 id="orgb67e5c9"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org578487c" class="outline-2">
|
||||
<h2 id="org578487c"><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,
|
||||
@ -350,8 +350,8 @@ and with a high maximum angular momentum.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgce58886" class="outline-3">
|
||||
<h3 id="orgce58886"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org10b76c4" class="outline-3">
|
||||
<h3 id="org10b76c4"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<pre class="example">
|
||||
5
|
||||
@ -381,8 +381,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3bd23c5" class="outline-3">
|
||||
<h3 id="org3bd23c5"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-orgdd6b1f8" class="outline-3">
|
||||
<h3 id="orgdd6b1f8"><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
|
||||
@ -1301,8 +1301,8 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org657316c" class="outline-3">
|
||||
<h3 id="org657316c"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org80d27a6" class="outline-3">
|
||||
<h3 id="org80d27a6"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">chbrclf_mo_num</span> ((<span style="color: #228b22;">int64_t</span>) 224)
|
||||
@ -60226,8 +60226,8 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3fbe893" class="outline-3">
|
||||
<h3 id="org3fbe893"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-orgd4f5f76" class="outline-3">
|
||||
<h3 id="orgd4f5f76"><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.
|
||||
@ -60386,8 +60386,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9bafe84" class="outline-2">
|
||||
<h2 id="org9bafe84"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-orge741e1f" class="outline-2">
|
||||
<h2 id="orge741e1f"><span class="section-number-2">2</span> N2</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
This test is mainly for the Jastrow factor and was supplied by
|
||||
@ -60428,8 +60428,8 @@ treated by pseudopotentials thus excluded from the actual calculation.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org44b0bb1" class="outline-3">
|
||||
<h3 id="org44b0bb1"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org8929b7b" class="outline-3">
|
||||
<h3 id="org8929b7b"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<pre class="example">
|
||||
2
|
||||
@ -60456,8 +60456,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9893d3c" class="outline-3">
|
||||
<h3 id="org9893d3c"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-orgce2712f" class="outline-3">
|
||||
<h3 id="orgce2712f"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
Electron coordinates are stored in atomic units in normal format.
|
||||
@ -60486,8 +60486,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org626e516" class="outline-3">
|
||||
<h3 id="org626e516"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-org93f695c" class="outline-3">
|
||||
<h3 id="org93f695c"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
This test is mainly for the Jastrow factor and was supplied by
|
||||
@ -60586,7 +60586,7 @@ Ramon Panades Baruetta.
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="date">Created: 2023-06-14 Wed 09:47</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:44</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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>TREXIO I/O library</title>
|
||||
@ -324,53 +324,53 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc144e5f">1. Local functions</a>
|
||||
<li><a href="#org930d21f">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#org1db0b23">1.1. Open file</a></li>
|
||||
<li><a href="#orgbecba06">1.2. Electron</a></li>
|
||||
<li><a href="#orgcd44bb6">1.3. Nucleus</a>
|
||||
<li><a href="#orgd7c6a63">1.1. Open file</a></li>
|
||||
<li><a href="#org00a45b6">1.2. Electron</a></li>
|
||||
<li><a href="#org0093962">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#orgecbf790">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orga380c26">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org16f83dc">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#org8a5d8bf">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org80fdc47">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org149a35b">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org80b090b">1.4. Basis set and AOs</a>
|
||||
<li><a href="#org2be76f8">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#org8e50678">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org9230e16">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org012d2f0">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org4648e02">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org95ba99c">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org27ab9cd">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org3c41f06">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org5281b61">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#orgf0c2966">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org6d08451">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#orge6d7e80">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org6b0229d">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#orgc8267b0">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#orge5e9866">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#org96d24bb">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org832d75a">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org06246ef">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orged5923e">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org5890c7e">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org894a2d5">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org1f667a7">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org84fca41">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#orgc7f8293">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#orgc264945">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#orged24966">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org8789d72">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#orgd3d703c">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#orgd31f552">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf021932">1.5. Molecular orbitals</a>
|
||||
<li><a href="#org3e61ad1">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#org9981bea">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org2250341">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#orgf8a32e6">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orgd79cf27">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org442f2b9">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#org76f0e00">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org918896a">2. Read everything</a></li>
|
||||
<li><a href="#org4fd27e4">3. Test</a>
|
||||
<li><a href="#org1caee70">2. Read everything</a></li>
|
||||
<li><a href="#org0946de6">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#orge2f9796">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org2f80f0c">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org2e9837b">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org13b2679">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#org0fc8d78">3.0.1. Electrons</a></li>
|
||||
<li><a href="#orgeeb525b">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org08a7351">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#orgc44b7f1">3.0.4. MO Basis</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -379,8 +379,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc144e5f" class="outline-2">
|
||||
<h2 id="orgc144e5f"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-org930d21f" class="outline-2">
|
||||
<h2 id="org930d21f"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Functions defined in this section are all local: they should not be
|
||||
@ -403,8 +403,8 @@ In the functions defined in this section, we use as local variables
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1db0b23" class="outline-3">
|
||||
<h3 id="org1db0b23"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-orgd7c6a63" class="outline-3">
|
||||
<h3 id="orgd7c6a63"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
We first define a helper function to open a file by first trying to
|
||||
@ -442,8 +442,8 @@ groups of data by passing the <code>trexio_t</code> handle.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbecba06" class="outline-3">
|
||||
<h3 id="orgbecba06"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org00a45b6" class="outline-3">
|
||||
<h3 id="org00a45b6"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
In this section we read all the data into the electron data structure.
|
||||
@ -494,8 +494,8 @@ We read the number of up-spin and down-spin electrons.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcd44bb6" class="outline-3">
|
||||
<h3 id="orgcd44bb6"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-org0093962" class="outline-3">
|
||||
<h3 id="org0093962"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
In this section we read the number of nuclei, the molecular geometry and nuclear charges.
|
||||
@ -515,8 +515,8 @@ In this section we read the number of nuclei, the molecular geometry and nuclear
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgecbf790" class="outline-4">
|
||||
<h4 id="orgecbf790"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-org8a5d8bf" class="outline-4">
|
||||
<h4 id="org8a5d8bf"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div class="outline-text-4" id="text-1-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nucleus_num</span> = 0L;
|
||||
@ -539,8 +539,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga380c26" class="outline-4">
|
||||
<h4 id="orga380c26"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-org80fdc47" class="outline-4">
|
||||
<h4 id="org80fdc47"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div class="outline-text-4" id="text-1-3-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -580,8 +580,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org16f83dc" class="outline-4">
|
||||
<h4 id="org16f83dc"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-org149a35b" class="outline-4">
|
||||
<h4 id="org149a35b"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-3-3">
|
||||
<p>
|
||||
Now, we read the molecular geometry. It is stored in normal format
|
||||
@ -636,8 +636,8 @@ in the TREXIO file (<code>'N'</code>), so it will be automatically transposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org80b090b" class="outline-3">
|
||||
<h3 id="org80b090b"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-org2be76f8" class="outline-3">
|
||||
<h3 id="org2be76f8"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
In this section we read the atomic basis set and atomic orbitals.
|
||||
@ -663,8 +663,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8e50678" class="outline-4">
|
||||
<h4 id="org8e50678"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-org96d24bb" class="outline-4">
|
||||
<h4 id="org96d24bb"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div class="outline-text-4" id="text-1-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">MAX_STR_LEN</span> 1024
|
||||
@ -695,8 +695,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9230e16" class="outline-4">
|
||||
<h4 id="org9230e16"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-org832d75a" class="outline-4">
|
||||
<h4 id="org832d75a"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div class="outline-text-4" id="text-1-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">shell_num</span> = 0L;
|
||||
@ -720,8 +720,8 @@ rc = qmckl_set_ao_basis_shell_num(context, shell_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org012d2f0" class="outline-4">
|
||||
<h4 id="org012d2f0"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-org06246ef" class="outline-4">
|
||||
<h4 id="org06246ef"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div class="outline-text-4" id="text-1-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">prim_num</span> = 0L;
|
||||
@ -745,8 +745,8 @@ rc = qmckl_set_ao_basis_prim_num(context, prim_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4648e02" class="outline-4">
|
||||
<h4 id="org4648e02"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-orged5923e" class="outline-4">
|
||||
<h4 id="orged5923e"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div class="outline-text-4" id="text-1-4-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ao_num</span> = 0LL;
|
||||
@ -770,8 +770,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org95ba99c" class="outline-4">
|
||||
<h4 id="org95ba99c"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-org5890c7e" class="outline-4">
|
||||
<h4 id="org5890c7e"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div class="outline-text-4" id="text-1-4-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -851,8 +851,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org27ab9cd" class="outline-4">
|
||||
<h4 id="org27ab9cd"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-org894a2d5" class="outline-4">
|
||||
<h4 id="org894a2d5"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div class="outline-text-4" id="text-1-4-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -937,8 +937,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3c41f06" class="outline-4">
|
||||
<h4 id="org3c41f06"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-org1f667a7" class="outline-4">
|
||||
<h4 id="org1f667a7"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div class="outline-text-4" id="text-1-4-7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -983,8 +983,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5281b61" class="outline-4">
|
||||
<h4 id="org5281b61"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-org84fca41" class="outline-4">
|
||||
<h4 id="org84fca41"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div class="outline-text-4" id="text-1-4-8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1068,8 +1068,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf0c2966" class="outline-4">
|
||||
<h4 id="orgf0c2966"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-orgc7f8293" class="outline-4">
|
||||
<h4 id="orgc7f8293"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div class="outline-text-4" id="text-1-4-9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1149,8 +1149,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d08451" class="outline-4">
|
||||
<h4 id="org6d08451"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-orgc264945" class="outline-4">
|
||||
<h4 id="orgc264945"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div class="outline-text-4" id="text-1-4-10">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1195,8 +1195,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge6d7e80" class="outline-4">
|
||||
<h4 id="orge6d7e80"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-orged24966" class="outline-4">
|
||||
<h4 id="orged24966"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div class="outline-text-4" id="text-1-4-11">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1241,8 +1241,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6b0229d" class="outline-4">
|
||||
<h4 id="org6b0229d"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-org8789d72" class="outline-4">
|
||||
<h4 id="org8789d72"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div class="outline-text-4" id="text-1-4-12">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1287,8 +1287,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc8267b0" class="outline-4">
|
||||
<h4 id="orgc8267b0"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-orgd3d703c" class="outline-4">
|
||||
<h4 id="orgd3d703c"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div class="outline-text-4" id="text-1-4-13">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1333,8 +1333,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge5e9866" class="outline-4">
|
||||
<h4 id="orge5e9866"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-orgd31f552" class="outline-4">
|
||||
<h4 id="orgd31f552"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div class="outline-text-4" id="text-1-4-14">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1389,8 +1389,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgf021932" class="outline-3">
|
||||
<h3 id="orgf021932"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org3e61ad1" class="outline-3">
|
||||
<h3 id="org3e61ad1"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
In this section we read the MO coefficients.
|
||||
@ -1416,8 +1416,8 @@ In this section we read the MO coefficients.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9981bea" class="outline-4">
|
||||
<h4 id="org9981bea"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-orgf8a32e6" class="outline-4">
|
||||
<h4 id="orgf8a32e6"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div class="outline-text-4" id="text-1-5-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">mo_num</span> = 0L;
|
||||
@ -1440,8 +1440,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2250341" class="outline-4">
|
||||
<h4 id="org2250341"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-orgd79cf27" class="outline-4">
|
||||
<h4 id="orgd79cf27"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div class="outline-text-4" id="text-1-5-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1490,12 +1490,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org442f2b9" class="outline-3">
|
||||
<h3 id="org442f2b9"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-org76f0e00" class="outline-3">
|
||||
<h3 id="org76f0e00"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org918896a" class="outline-2">
|
||||
<h2 id="org918896a"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-org1caee70" class="outline-2">
|
||||
<h2 id="org1caee70"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1570,8 +1570,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4fd27e4" class="outline-2">
|
||||
<h2 id="org4fd27e4"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-org0946de6" class="outline-2">
|
||||
<h2 id="org0946de6"><span class="section-number-2">3</span> Test</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_TREXIO
|
||||
@ -1595,8 +1595,8 @@ rc = qmckl_trexio_read(context, filename, 255);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge2f9796" class="outline-4">
|
||||
<h4 id="orge2f9796"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-org0fc8d78" class="outline-4">
|
||||
<h4 id="org0fc8d78"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div class="outline-text-4" id="text-3-0-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Electrons\n"</span>);
|
||||
@ -1614,8 +1614,8 @@ rc = qmckl_get_electron_down_num(context, &dn_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2f80f0c" class="outline-4">
|
||||
<h4 id="org2f80f0c"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-orgeeb525b" class="outline-4">
|
||||
<h4 id="orgeeb525b"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div class="outline-text-4" id="text-3-0-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Nuclei\n"</span>);
|
||||
@ -1655,8 +1655,8 @@ coord = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2e9837b" class="outline-4">
|
||||
<h4 id="org2e9837b"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-org08a7351" class="outline-4">
|
||||
<h4 id="org08a7351"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div class="outline-text-4" id="text-3-0-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Atomic basis\n"</span>);
|
||||
@ -1764,8 +1764,8 @@ prim_factor = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org13b2679" class="outline-4">
|
||||
<h4 id="org13b2679"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-orgc44b7f1" class="outline-4">
|
||||
<h4 id="orgc44b7f1"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div class="outline-text-4" id="text-3-0-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"MOs\n"</span>);
|
||||
@ -1796,7 +1796,7 @@ charge = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:43</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>
|
||||
<!-- 2023-06-14 Wed 09:46 -->
|
||||
<!-- 2023-06-21 Wed 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Verificarlo CI</title>
|
||||
@ -324,22 +324,22 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org1d78874">1. Verificarlo probes</a>
|
||||
<li><a href="#org2db9333">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#orgcb03441">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orga6e12b9">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org1ef4050">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org3452236">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#orgfb9b322">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org0372a6c">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org2a15c4e">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org317df30">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org5b125a9">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org98d3ef9">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org09d4383">2. Fortran wrappers</a></li>
|
||||
<li><a href="#org4a31190">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1d78874" class="outline-2">
|
||||
<h2 id="org1d78874"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-org2db9333" class="outline-2">
|
||||
<h2 id="org2db9333"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
This file contains utility functions to enable the Verificarlo
|
||||
@ -390,8 +390,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgcb03441" class="outline-3">
|
||||
<h3 id="orgcb03441"><span class="section-number-3">1.1</span> Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div id="outline-container-org0372a6c" class="outline-3">
|
||||
<h3 id="org0372a6c"><span class="section-number-3">1.1</span> Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">void</span> <span style="color: #0000ff;">qmckl_init_probes</span>();
|
||||
@ -409,8 +409,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga6e12b9" class="outline-3">
|
||||
<h3 id="orga6e12b9"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-org2a15c4e" class="outline-3">
|
||||
<h3 id="org2a15c4e"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a standard probe</li>
|
||||
@ -445,8 +445,8 @@ if <code>VFC_CI</code> is undefined, return <code>false</code> (no error)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ef4050" class="outline-3">
|
||||
<h3 id="org1ef4050"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-org317df30" class="outline-3">
|
||||
<h3 id="org317df30"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a probe with an absolute check</li>
|
||||
@ -486,8 +486,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3452236" class="outline-3">
|
||||
<h3 id="org3452236"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-org5b125a9" class="outline-3">
|
||||
<h3 id="org5b125a9"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a probe with a relative check</li>
|
||||
@ -527,8 +527,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfb9b322" class="outline-3">
|
||||
<h3 id="orgfb9b322"><span class="section-number-3">1.5</span> Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div id="outline-container-org98d3ef9" class="outline-3">
|
||||
<h3 id="org98d3ef9"><span class="section-number-3">1.5</span> Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">void</span> <span style="color: #0000ff;">qmckl_dump_probes</span>();
|
||||
@ -547,8 +547,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org09d4383" class="outline-2">
|
||||
<h2 id="org09d4383"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-org4a31190" class="outline-2">
|
||||
<h2 id="org4a31190"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">bool</span> <span style="color: #0000ff;">qmckl_probe_f</span>(
|
||||
@ -672,7 +672,7 @@ and accuracy
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-06-14 Wed 09:46</p>
|
||||
<p class="date">Created: 2023-06-21 Wed 12:43</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