mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-08 20:33:40 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@f005f587e7 🚀
This commit is contained in:
parent
35e0713e60
commit
503e810b68
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<!-- 2021-06-25 Fri 15:38 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>QMCkl source code documentation</title>
|
||||
@ -352,7 +352,7 @@ and bug reports should be submitted at
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</p>
|
||||
<p class="date">Created: 2021-06-25 Fri 15:38</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
102
qmckl.html
102
qmckl.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<!-- 2021-06-25 Fri 15:38 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Introduction</title>
|
||||
@ -333,30 +333,30 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org205e8b7">1. Using QMCkl</a></li>
|
||||
<li><a href="#orga4c6901">2. Developing in QMCkl</a>
|
||||
<li><a href="#orgad89199">1. Using QMCkl</a></li>
|
||||
<li><a href="#org9ce9e8f">2. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orge04a980">2.1. Literate programming</a></li>
|
||||
<li><a href="#org053c17a">2.2. Source code editing</a></li>
|
||||
<li><a href="#orgb5570fa">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org4217adc">2.4. Coding rules</a></li>
|
||||
<li><a href="#orgf81a492">2.5. Design of the library</a></li>
|
||||
<li><a href="#orgc1d78e7">2.6. Naming conventions</a></li>
|
||||
<li><a href="#org9d485da">2.7. Application programming interface</a></li>
|
||||
<li><a href="#orge3d097c">2.8. Global state</a></li>
|
||||
<li><a href="#org016271e">2.9. Headers</a></li>
|
||||
<li><a href="#orgf4ba55e">2.10. Low-level functions</a></li>
|
||||
<li><a href="#orgb6314a9">2.11. High-level functions</a></li>
|
||||
<li><a href="#orga83d4eb">2.12. Numerical precision</a></li>
|
||||
<li><a href="#orge5b0adc">2.13. Algorithms</a></li>
|
||||
<li><a href="#orge791df5">2.1. Literate programming</a></li>
|
||||
<li><a href="#orgf036551">2.2. Source code editing</a></li>
|
||||
<li><a href="#orgbbb697d">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orgb0e3e46">2.4. Coding rules</a></li>
|
||||
<li><a href="#org0428943">2.5. Design of the library</a></li>
|
||||
<li><a href="#orgd1ed899">2.6. Naming conventions</a></li>
|
||||
<li><a href="#org2a0ca6a">2.7. Application programming interface</a></li>
|
||||
<li><a href="#org9a284b6">2.8. Global state</a></li>
|
||||
<li><a href="#orgfa3ff36">2.9. Headers</a></li>
|
||||
<li><a href="#org3b6fb78">2.10. Low-level functions</a></li>
|
||||
<li><a href="#orge8e193a">2.11. High-level functions</a></li>
|
||||
<li><a href="#org9a26249">2.12. Numerical precision</a></li>
|
||||
<li><a href="#org46d98a3">2.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org205e8b7" class="outline-2">
|
||||
<h2 id="org205e8b7"><span class="section-number-2">1</span> Using QMCkl</h2>
|
||||
<div id="outline-container-orgad89199" class="outline-2">
|
||||
<h2 id="orgad89199"><span class="section-number-2">1</span> Using QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The <code>qmckl.h</code> header file installed in the <code>${prefix}/include</code> directory
|
||||
@ -385,12 +385,12 @@ Both files are located in the <code>include/</code> directory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga4c6901" class="outline-2">
|
||||
<h2 id="orga4c6901"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org9ce9e8f" class="outline-2">
|
||||
<h2 id="org9ce9e8f"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orge04a980" class="outline-3">
|
||||
<h3 id="orge04a980"><span class="section-number-3">2.1</span> Literate programming</h3>
|
||||
<div id="outline-container-orge791df5" class="outline-3">
|
||||
<h3 id="orge791df5"><span class="section-number-3">2.1</span> Literate programming</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
In a traditional source code, most of the lines of source files of a program
|
||||
@ -435,8 +435,8 @@ interactively, in the same spirit as Jupyter notebooks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org053c17a" class="outline-3">
|
||||
<h3 id="org053c17a"><span class="section-number-3">2.2</span> Source code editing</h3>
|
||||
<div id="outline-container-orgf036551" class="outline-3">
|
||||
<h3 id="orgf036551"><span class="section-number-3">2.2</span> Source code editing</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
For a tutorial on literate programming with org-mode, follow <a href="http://www.howardism.org/Technical/Emacs/literate-programming-tutorial.html">this link</a>.
|
||||
@ -467,8 +467,8 @@ org-mode.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb5570fa" class="outline-3">
|
||||
<h3 id="orgb5570fa"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-orgbbb697d" class="outline-3">
|
||||
<h3 id="orgbbb697d"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some scripts in
|
||||
@ -516,8 +516,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4217adc" class="outline-3">
|
||||
<h3 id="org4217adc"><span class="section-number-3">2.4</span> Coding rules</h3>
|
||||
<div id="outline-container-orgb0e3e46" class="outline-3">
|
||||
<h3 id="orgb0e3e46"><span class="section-number-3">2.4</span> Coding rules</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
The authors should follow the recommendations of the C99
|
||||
@ -535,8 +535,8 @@ Compliance can be checked with <code>cppcheck</code> as:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf81a492" class="outline-3">
|
||||
<h3 id="orgf81a492"><span class="section-number-3">2.5</span> Design of the library</h3>
|
||||
<div id="outline-container-org0428943" class="outline-3">
|
||||
<h3 id="org0428943"><span class="section-number-3">2.5</span> Design of the library</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
The proposed API should allow the library to: deal with memory transfers
|
||||
@ -547,8 +547,8 @@ functions (see below).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc1d78e7" class="outline-3">
|
||||
<h3 id="orgc1d78e7"><span class="section-number-3">2.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-orgd1ed899" class="outline-3">
|
||||
<h3 id="orgd1ed899"><span class="section-number-3">2.6</span> Naming conventions</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
||||
@ -573,8 +573,8 @@ form is allowed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9d485da" class="outline-3">
|
||||
<h3 id="org9d485da"><span class="section-number-3">2.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org2a0ca6a" class="outline-3">
|
||||
<h3 id="org2a0ca6a"><span class="section-number-3">2.7</span> Application programming interface</h3>
|
||||
<div class="outline-text-3" id="text-2-7">
|
||||
<p>
|
||||
In the C language, the number of bits used by the integer types can change
|
||||
@ -606,15 +606,15 @@ bindings in other languages in other repositories.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge3d097c" class="outline-3">
|
||||
<h3 id="orge3d097c"><span class="section-number-3">2.8</span> Global state</h3>
|
||||
<div id="outline-container-org9a284b6" class="outline-3">
|
||||
<h3 id="org9a284b6"><span class="section-number-3">2.8</span> Global state</h3>
|
||||
<div class="outline-text-3" id="text-2-8">
|
||||
<p>
|
||||
Global variables should be avoided in the library, because it is
|
||||
possible that one single program needs to use multiple instances
|
||||
of the library. To solve this problem we propose to use a pointer
|
||||
to a <a href="./qmckl_context.html"><code>context</code></a> variable, built by the library with the
|
||||
<code>qmckl_context_create</code> function. The <a id="orgbf24743">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="org3600c50">=context=</a> contains the global
|
||||
state of the library, and is used as the first argument of many
|
||||
QMCkl functions.
|
||||
</p>
|
||||
@ -628,8 +628,8 @@ the state is done by setters and getters, prefixed by
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org016271e" class="outline-3">
|
||||
<h3 id="org016271e"><span class="section-number-3">2.9</span> Headers</h3>
|
||||
<div id="outline-container-orgfa3ff36" class="outline-3">
|
||||
<h3 id="orgfa3ff36"><span class="section-number-3">2.9</span> Headers</h3>
|
||||
<div class="outline-text-3" id="text-2-9">
|
||||
<p>
|
||||
A single <code>qmckl.h</code> header to be distributed by the library
|
||||
@ -717,8 +717,8 @@ and the types definitions should be written in the <code>*fh_type.f90</code> fil
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf4ba55e" class="outline-3">
|
||||
<h3 id="orgf4ba55e"><span class="section-number-3">2.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org3b6fb78" class="outline-3">
|
||||
<h3 id="org3b6fb78"><span class="section-number-3">2.10</span> Low-level functions</h3>
|
||||
<div class="outline-text-3" id="text-2-10">
|
||||
<p>
|
||||
Low-level functions are very simple functions which are leaves of
|
||||
@ -727,14 +727,14 @@ the function call tree (they don't call any other QMCkl function).
|
||||
|
||||
<p>
|
||||
These functions are <i>pure</i>, and unaware of the QMCkl
|
||||
<a href="#orgbf24743"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#org3600c50"><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-orgb6314a9" class="outline-3">
|
||||
<h3 id="orgb6314a9"><span class="section-number-3">2.11</span> High-level functions</h3>
|
||||
<div id="outline-container-orge8e193a" class="outline-3">
|
||||
<h3 id="orge8e193a"><span class="section-number-3">2.11</span> High-level functions</h3>
|
||||
<div class="outline-text-3" id="text-2-11">
|
||||
<p>
|
||||
High-level functions are at the top of the function call tree.
|
||||
@ -747,27 +747,27 @@ temporary storage, to simplify the use of accelerators.
|
||||
<p>
|
||||
The high-level functions should be pure, unless the introduction
|
||||
of non-purity is justified. All the side effects should be made in
|
||||
the <a href="#orgbf24743"><code>context</code></a> variable.
|
||||
the <a href="#org3600c50"><code>context</code></a> variable.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga83d4eb" class="outline-3">
|
||||
<h3 id="orga83d4eb"><span class="section-number-3">2.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org9a26249" class="outline-3">
|
||||
<h3 id="org9a26249"><span class="section-number-3">2.12</span> Numerical precision</h3>
|
||||
<div class="outline-text-3" id="text-2-12">
|
||||
<p>
|
||||
The number of bits of precision required for a function should be
|
||||
given as an input of low-level computational functions. This input
|
||||
will be used to define the values of the different thresholds that
|
||||
might be used to avoid computing unnecessary noise. High-level
|
||||
functions will use the precision specified in the <a href="#orgbf24743"><code>context</code></a>
|
||||
functions will use the precision specified in the <a href="#org3600c50"><code>context</code></a>
|
||||
variable.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge5b0adc" class="outline-3">
|
||||
<h3 id="orge5b0adc"><span class="section-number-3">2.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org46d98a3" class="outline-3">
|
||||
<h3 id="org46d98a3"><span class="section-number-3">2.13</span> Algorithms</h3>
|
||||
<div class="outline-text-3" id="text-2-13">
|
||||
<p>
|
||||
Reducing the scaling of an algorithm usually implies also reducing
|
||||
@ -783,7 +783,7 @@ implemented adapted to different problem sizes.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</p>
|
||||
<p class="date">Created: 2021-06-25 Fri 15:38</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
229
qmckl_ao.html
229
qmckl_ao.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<!-- 2021-06-25 Fri 15:38 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Atomic Orbitals</title>
|
||||
@ -333,69 +333,69 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org977819f">1. Context</a>
|
||||
<li><a href="#org6d6a15d">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgd089ee3">1.1. Data structure</a></li>
|
||||
<li><a href="#org7eed92f">1.2. Access functions</a></li>
|
||||
<li><a href="#orgd63f724">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgd430de3">1.4. Fortran interfaces</a></li>
|
||||
<li><a href="#orgab1e640">1.1. Data structure</a></li>
|
||||
<li><a href="#org5604a07">1.2. Access functions</a></li>
|
||||
<li><a href="#orgdd96111">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org0325838">1.4. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8fe9307">2. Radial part</a>
|
||||
<li><a href="#org3aacd39">2. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org8afe2e8">2.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org07a566a">2.2. <span class="todo TODO">TODO</span> General functions for Slater basis functions</a></li>
|
||||
<li><a href="#orgb8b9c64">2.3. <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</a></li>
|
||||
<li><a href="#orgfd336cd">2.4. <span class="done DONE">DONE</span> Computation of primitives</a>
|
||||
<li><a href="#org0913d8c">2.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org9ddc4af">2.2. <span class="todo TODO">TODO</span> General functions for Slater basis functions</a></li>
|
||||
<li><a href="#orgc34a44f">2.3. <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</a></li>
|
||||
<li><a href="#org2d8231e">2.4. <span class="done DONE">DONE</span> Computation of primitives</a>
|
||||
<ul>
|
||||
<li><a href="#org5fe02e8">2.4.1. Get</a></li>
|
||||
<li><a href="#orgba21797">2.4.2. Provide</a></li>
|
||||
<li><a href="#org5161d5c">2.4.3. Compute</a></li>
|
||||
<li><a href="#org7636607">2.4.4. Test</a></li>
|
||||
<li><a href="#org9d0ac73">2.4.5. Ideas for improvement</a></li>
|
||||
<li><a href="#orgad8d320">2.4.1. Get</a></li>
|
||||
<li><a href="#org8583fe4">2.4.2. Provide</a></li>
|
||||
<li><a href="#org8935104">2.4.3. Compute</a></li>
|
||||
<li><a href="#orgd471597">2.4.4. Test</a></li>
|
||||
<li><a href="#org7697663">2.4.5. Ideas for improvement</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgffda4a9">2.5. Computation of shells</a>
|
||||
<li><a href="#orgf7dfbcb">2.5. Computation of shells</a>
|
||||
<ul>
|
||||
<li><a href="#orgc028165">2.5.1. Get</a></li>
|
||||
<li><a href="#orgd0768cb">2.5.2. Provide</a></li>
|
||||
<li><a href="#org9fb3b7f">2.5.3. Compute</a></li>
|
||||
<li><a href="#org34d9a5b">2.5.4. Test</a></li>
|
||||
<li><a href="#orga82fed3">2.5.1. Get</a></li>
|
||||
<li><a href="#org243af5f">2.5.2. Provide</a></li>
|
||||
<li><a href="#orgbbec06a">2.5.3. Compute</a></li>
|
||||
<li><a href="#org2f54c16">2.5.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org528857f">3. Polynomial part</a>
|
||||
<li><a href="#org937c82d">3. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org18fc948">3.1. General functions for Powers of \(x-X_i\)</a>
|
||||
<li><a href="#orgb77113d">3.1. General functions for Powers of \(x-X_i\)</a>
|
||||
<ul>
|
||||
<li><a href="#orgd793105">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org6b60fe9">3.1.2. C Header</a></li>
|
||||
<li><a href="#org7d47ae1">3.1.3. Source</a></li>
|
||||
<li><a href="#orgbb213ea">3.1.4. C interface</a></li>
|
||||
<li><a href="#org5678132">3.1.5. Fortran interface</a></li>
|
||||
<li><a href="#org15ddfe5">3.1.6. Test</a></li>
|
||||
<li><a href="#org853c282">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org9dc93a8">3.1.2. C Header</a></li>
|
||||
<li><a href="#orgddeba9f">3.1.3. Source</a></li>
|
||||
<li><a href="#org65dd5ff">3.1.4. C interface</a></li>
|
||||
<li><a href="#orgeeb7ef4">3.1.5. Fortran interface</a></li>
|
||||
<li><a href="#org4e148b7">3.1.6. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8019745">3.2. General functions for Value, Gradient and Laplacian of a polynomial</a>
|
||||
<li><a href="#orgf949951">3.2. General functions for Value, Gradient and Laplacian of a polynomial</a>
|
||||
<ul>
|
||||
<li><a href="#orge8e6951">3.2.1. Requirements</a></li>
|
||||
<li><a href="#orgeda1315">3.2.2. C Header</a></li>
|
||||
<li><a href="#org7bd4dd2">3.2.3. Source</a></li>
|
||||
<li><a href="#org7758993">3.2.4. C interface</a></li>
|
||||
<li><a href="#orgb5d5fb5">3.2.5. Fortran interface</a></li>
|
||||
<li><a href="#org381002f">3.2.6. Test</a></li>
|
||||
<li><a href="#org5e2b098">3.2.1. Requirements</a></li>
|
||||
<li><a href="#orgd0d705e">3.2.2. C Header</a></li>
|
||||
<li><a href="#org196038a">3.2.3. Source</a></li>
|
||||
<li><a href="#org2e0e4b8">3.2.4. C interface</a></li>
|
||||
<li><a href="#orgeb012c3">3.2.5. Fortran interface</a></li>
|
||||
<li><a href="#org2ec9e35">3.2.6. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8466f8f">4. Combining radial and polynomial parts</a></li>
|
||||
<li><a href="#org46bdbe3">4. Combining radial and polynomial parts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org977819f" class="outline-2">
|
||||
<h2 id="org977819f"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org6d6a15d" class="outline-2">
|
||||
<h2 id="org6d6a15d"><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:
|
||||
@ -611,8 +611,8 @@ prim_factor = [ 1.0006253235944540e+01, 2.4169531573445120e+00, 7.96109248497664
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd089ee3" class="outline-3">
|
||||
<h3 id="orgd089ee3"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgab1e640" class="outline-3">
|
||||
<h3 id="orgab1e640"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_ao_basis_struct</span> {
|
||||
@ -676,8 +676,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7eed92f" class="outline-3">
|
||||
<h3 id="org7eed92f"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org5604a07" class="outline-3">
|
||||
<h3 id="org5604a07"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data for the AOs have been provided, the following
|
||||
@ -691,8 +691,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd63f724" class="outline-3">
|
||||
<h3 id="orgd63f724"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgdd96111" class="outline-3">
|
||||
<h3 id="orgdd96111"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -727,17 +727,17 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd430de3" class="outline-3">
|
||||
<h3 id="orgd430de3"><span class="section-number-3">1.4</span> Fortran interfaces</h3>
|
||||
<div id="outline-container-org0325838" class="outline-3">
|
||||
<h3 id="org0325838"><span class="section-number-3">1.4</span> Fortran interfaces</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8fe9307" class="outline-2">
|
||||
<h2 id="org8fe9307"><span class="section-number-2">2</span> Radial part</h2>
|
||||
<div id="outline-container-org3aacd39" class="outline-2">
|
||||
<h2 id="org3aacd39"><span class="section-number-2">2</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org8afe2e8" class="outline-3">
|
||||
<h3 id="org8afe2e8"><span class="section-number-3">2.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-org0913d8c" class="outline-3">
|
||||
<h3 id="org0913d8c"><span class="section-number-3">2.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
<code>qmckl_ao_gaussian_vgl</code> computes the values, gradients and
|
||||
@ -969,18 +969,18 @@ Requirements
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org07a566a" class="outline-3">
|
||||
<h3 id="org07a566a"><span class="section-number-3">2.2</span> <span class="todo TODO">TODO</span> General functions for Slater basis functions</h3>
|
||||
<div id="outline-container-org9ddc4af" class="outline-3">
|
||||
<h3 id="org9ddc4af"><span class="section-number-3">2.2</span> <span class="todo TODO">TODO</span> General functions for Slater basis functions</h3>
|
||||
</div>
|
||||
<div id="outline-container-orgb8b9c64" class="outline-3">
|
||||
<h3 id="orgb8b9c64"><span class="section-number-3">2.3</span> <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</h3>
|
||||
<div id="outline-container-orgc34a44f" class="outline-3">
|
||||
<h3 id="orgc34a44f"><span class="section-number-3">2.3</span> <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</h3>
|
||||
</div>
|
||||
<div id="outline-container-orgfd336cd" class="outline-3">
|
||||
<h3 id="orgfd336cd"><span class="section-number-3">2.4</span> <span class="done DONE">DONE</span> Computation of primitives</h3>
|
||||
<div id="outline-container-org2d8231e" class="outline-3">
|
||||
<h3 id="org2d8231e"><span class="section-number-3">2.4</span> <span class="done DONE">DONE</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
</div>
|
||||
<div id="outline-container-org5fe02e8" class="outline-4">
|
||||
<h4 id="org5fe02e8"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgad8d320" class="outline-4">
|
||||
<h4 id="orgad8d320"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_ao_basis_primitive_vgl</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">primitive_vgl</span>);
|
||||
@ -989,14 +989,14 @@ Requirements
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgba21797" class="outline-4">
|
||||
<h4 id="orgba21797"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-org8583fe4" class="outline-4">
|
||||
<h4 id="org8583fe4"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5161d5c" class="outline-4">
|
||||
<h4 id="org5161d5c"><span class="section-number-4">2.4.3</span> Compute</h4>
|
||||
<div id="outline-container-org8935104" class="outline-4">
|
||||
<h4 id="org8935104"><span class="section-number-4">2.4.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<table id="orgb01979a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgeeb8f1a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1140,12 +1140,12 @@ Requirements
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7636607" class="outline-4">
|
||||
<h4 id="org7636607"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-orgd471597" class="outline-4">
|
||||
<h4 id="orgd471597"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9d0ac73" class="outline-4">
|
||||
<h4 id="org9d0ac73"><span class="section-number-4">2.4.5</span> Ideas for improvement</h4>
|
||||
<div id="outline-container-org7697663" class="outline-4">
|
||||
<h4 id="org7697663"><span class="section-number-4">2.4.5</span> Ideas for improvement</h4>
|
||||
<div class="outline-text-4" id="text-2-4-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">// <span style="color: #b22222;">m : walkers</span>
|
||||
@ -1182,12 +1182,12 @@ k=0;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgffda4a9" class="outline-3">
|
||||
<h3 id="orgffda4a9"><span class="section-number-3">2.5</span> Computation of shells</h3>
|
||||
<div id="outline-container-orgf7dfbcb" class="outline-3">
|
||||
<h3 id="orgf7dfbcb"><span class="section-number-3">2.5</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
</div>
|
||||
<div id="outline-container-orgc028165" class="outline-4">
|
||||
<h4 id="orgc028165"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div id="outline-container-orga82fed3" class="outline-4">
|
||||
<h4 id="orga82fed3"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_ao_basis_shell_vgl</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">shell_vgl</span>);
|
||||
@ -1196,14 +1196,14 @@ k=0;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd0768cb" class="outline-4">
|
||||
<h4 id="orgd0768cb"><span class="section-number-4">2.5.2</span> Provide</h4>
|
||||
<div id="outline-container-org243af5f" class="outline-4">
|
||||
<h4 id="org243af5f"><span class="section-number-4">2.5.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9fb3b7f" class="outline-4">
|
||||
<h4 id="org9fb3b7f"><span class="section-number-4">2.5.3</span> Compute</h4>
|
||||
<div id="outline-container-orgbbec06a" class="outline-4">
|
||||
<h4 id="orgbbec06a"><span class="section-number-4">2.5.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-3">
|
||||
<table id="org377aae0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3cabaac" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1353,6 +1353,7 @@ k=0;
|
||||
info = QMCKL_SUCCESS
|
||||
|
||||
! <span style="color: #b22222;">Don't compute exponentials when the result will be almost zero.</span>
|
||||
! <span style="color: #b22222;">TODO : Use numerical precision here</span>
|
||||
cutoff = -dlog(1.d-15)
|
||||
|
||||
<span style="color: #a020f0;">do</span> inucl=1,nucl_num
|
||||
@ -1410,18 +1411,18 @@ k=0;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org34d9a5b" class="outline-4">
|
||||
<h4 id="org34d9a5b"><span class="section-number-4">2.5.4</span> Test</h4>
|
||||
<div id="outline-container-org2f54c16" class="outline-4">
|
||||
<h4 id="org2f54c16"><span class="section-number-4">2.5.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org528857f" class="outline-2">
|
||||
<h2 id="org528857f"><span class="section-number-2">3</span> Polynomial part</h2>
|
||||
<div id="outline-container-org937c82d" class="outline-2">
|
||||
<h2 id="org937c82d"><span class="section-number-2">3</span> Polynomial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org18fc948" class="outline-3">
|
||||
<h3 id="org18fc948"><span class="section-number-3">3.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-orgb77113d" class="outline-3">
|
||||
<h3 id="orgb77113d"><span class="section-number-3">3.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
The <code>qmckl_ao_power</code> function computes all the powers of the <code>n</code>
|
||||
@ -1433,7 +1434,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="org299b5a8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org88f2e49" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1491,8 +1492,8 @@ the \(n\) points:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd793105" class="outline-4">
|
||||
<h4 id="orgd793105"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org853c282" class="outline-4">
|
||||
<h4 id="org853c282"><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>
|
||||
@ -1505,8 +1506,8 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6b60fe9" class="outline-4">
|
||||
<h4 id="org6b60fe9"><span class="section-number-4">3.1.2</span> C Header</h4>
|
||||
<div id="outline-container-org9dc93a8" class="outline-4">
|
||||
<h4 id="org9dc93a8"><span class="section-number-4">3.1.2</span> C Header</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_ao_power</span> (
|
||||
@ -1521,8 +1522,8 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7d47ae1" class="outline-4">
|
||||
<h4 id="org7d47ae1"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgddeba9f" class="outline-4">
|
||||
<h4 id="orgddeba9f"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer </span><span style="color: #a020f0;">function</span><span style="color: #a0522d;"> </span><span style="color: #0000ff;">qmckl_ao_power_f</span><span style="color: #000000; background-color: #ffffff;">(context, n, X, LMAX, P, ldp) result(info)</span>
|
||||
@ -1573,15 +1574,15 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb213ea" class="outline-4">
|
||||
<h4 id="orgbb213ea"><span class="section-number-4">3.1.4</span> C interface</h4>
|
||||
<div id="outline-container-org65dd5ff" class="outline-4">
|
||||
<h4 id="org65dd5ff"><span class="section-number-4">3.1.4</span> C interface</h4>
|
||||
</div>
|
||||
<div id="outline-container-org5678132" class="outline-4">
|
||||
<h4 id="org5678132"><span class="section-number-4">3.1.5</span> Fortran interface</h4>
|
||||
<div id="outline-container-orgeeb7ef4" class="outline-4">
|
||||
<h4 id="orgeeb7ef4"><span class="section-number-4">3.1.5</span> Fortran interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org15ddfe5" class="outline-4">
|
||||
<h4 id="org15ddfe5"><span class="section-number-4">3.1.6</span> Test</h4>
|
||||
<div id="outline-container-org4e148b7" class="outline-4">
|
||||
<h4 id="org4e148b7"><span class="section-number-4">3.1.6</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-1-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span>(<span style="color: #008b8b;">c_int32_t</span>) <span style="color: #a020f0;">function</span> <span style="color: #0000ff;">test_qmckl_ao_power</span>(context) <span style="color: #a020f0;">bind</span>(C)
|
||||
@ -1632,8 +1633,8 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8019745" class="outline-3">
|
||||
<h3 id="org8019745"><span class="section-number-3">3.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-orgf949951" class="outline-3">
|
||||
<h3 id="orgf949951"><span class="section-number-3">3.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<p>
|
||||
A polynomial is centered on a nucleus \(\mathbf{R}_i\)
|
||||
@ -1678,7 +1679,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="org0b2782c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3aad16c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1757,8 +1758,8 @@ angular momentum up to <code>lmax</code>.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge8e6951" class="outline-4">
|
||||
<h4 id="orge8e6951"><span class="section-number-4">3.2.1</span> Requirements</h4>
|
||||
<div id="outline-container-org5e2b098" class="outline-4">
|
||||
<h4 id="org5e2b098"><span class="section-number-4">3.2.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-2-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1783,8 +1784,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeda1315" class="outline-4">
|
||||
<h4 id="orgeda1315"><span class="section-number-4">3.2.2</span> C Header</h4>
|
||||
<div id="outline-container-orgd0d705e" class="outline-4">
|
||||
<h4 id="orgd0d705e"><span class="section-number-4">3.2.2</span> C Header</h4>
|
||||
<div class="outline-text-4" id="text-3-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_ao_polynomial_vgl</span> (
|
||||
@ -1802,8 +1803,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7bd4dd2" class="outline-4">
|
||||
<h4 id="org7bd4dd2"><span class="section-number-4">3.2.3</span> Source</h4>
|
||||
<div id="outline-container-org196038a" class="outline-4">
|
||||
<h4 id="org196038a"><span class="section-number-4">3.2.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-3-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer </span><span style="color: #a020f0;">function</span><span style="color: #a0522d;"> </span><span style="color: #0000ff;">qmckl_ao_polynomial_vgl_f</span><span style="color: #000000; background-color: #ffffff;">(context, X, R, lmax, n, L, ldl, VGL, ldv) result(info)</span>
|
||||
@ -1938,16 +1939,16 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7758993" class="outline-4">
|
||||
<h4 id="org7758993"><span class="section-number-4">3.2.4</span> C interface</h4>
|
||||
<div id="outline-container-org2e0e4b8" class="outline-4">
|
||||
<h4 id="org2e0e4b8"><span class="section-number-4">3.2.4</span> C interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb5d5fb5" class="outline-4">
|
||||
<h4 id="orgb5d5fb5"><span class="section-number-4">3.2.5</span> Fortran interface</h4>
|
||||
<div id="outline-container-orgeb012c3" class="outline-4">
|
||||
<h4 id="orgeb012c3"><span class="section-number-4">3.2.5</span> Fortran interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org381002f" class="outline-4">
|
||||
<h4 id="org381002f"><span class="section-number-4">3.2.6</span> Test</h4>
|
||||
<div id="outline-container-org2ec9e35" class="outline-4">
|
||||
<h4 id="org2ec9e35"><span class="section-number-4">3.2.6</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-2-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span>(<span style="color: #008b8b;">c_int32_t</span>) <span style="color: #a020f0;">function</span> <span style="color: #0000ff;">test_qmckl_ao_polynomial_vgl</span>(context) <span style="color: #a020f0;">bind</span>(C)
|
||||
@ -2052,13 +2053,13 @@ assert(0 == test_qmckl_ao_polynomial_vgl(context));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8466f8f" class="outline-2">
|
||||
<h2 id="org8466f8f"><span class="section-number-2">4</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-org46bdbe3" class="outline-2">
|
||||
<h2 id="org46bdbe3"><span class="section-number-2">4</span> Combining radial and polynomial parts</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</p>
|
||||
<p class="date">Created: 2021-06-25 Fri 15:38</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<!-- 2021-06-25 Fri 15:38 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Context</title>
|
||||
@ -311,21 +311,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org6486194">1. Context handling</a>
|
||||
<li><a href="#org14019a3">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#org56cfdad">1.1. Data structure</a></li>
|
||||
<li><a href="#orgf85af88">1.2. Creation</a></li>
|
||||
<li><a href="#orgec2fd13">1.3. Locking</a></li>
|
||||
<li><a href="#orgd7be45f">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org0d8d0bd">1.5. Destroy</a></li>
|
||||
<li><a href="#org1915e08">1.1. Data structure</a></li>
|
||||
<li><a href="#org65efe78">1.2. Creation</a></li>
|
||||
<li><a href="#org4f38f85">1.3. Locking</a></li>
|
||||
<li><a href="#org72ba7bb">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org4b8a857">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6486194" class="outline-2">
|
||||
<h2 id="org6486194"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org14019a3" class="outline-2">
|
||||
<h2 id="org14019a3"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The context variable is a handle for the state of the library,
|
||||
@ -338,7 +338,7 @@ A value of <code>QMCKL_NULL_CONTEXT</code> for the context is equivalent to a
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org7ff1a30"><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="orgb935a33"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int64_t</span> <span style="color: #228b22;">qmckl_context</span> ;
|
||||
<span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">QMCKL_NULL_CONTEXT</span> (qmckl_context) 0
|
||||
</pre>
|
||||
</div>
|
||||
@ -356,8 +356,8 @@ and <code>ctx</code> is a <code>qmckl_context_struct*</code> pointer.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org56cfdad" class="outline-3">
|
||||
<h3 id="org56cfdad"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org1915e08" class="outline-3">
|
||||
<h3 id="org1915e08"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
The context keeps a ``date'' that allows to check which data needs
|
||||
@ -367,7 +367,7 @@ coordinates are updated.
|
||||
|
||||
<p>
|
||||
When a new element is added to the context, the functions
|
||||
<a href="#orgf85af88">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#org0d8d0bd">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#orgd7be45f">qmckl<sub>context</sub><sub>copy</sub></a>
|
||||
<a href="#org65efe78">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#org4b8a857">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#org72ba7bb">qmckl<sub>context</sub><sub>copy</sub></a>
|
||||
should be updated inorder to make deep copies.
|
||||
</p>
|
||||
|
||||
@ -416,8 +416,8 @@ if the context is valid, <code>QMCKL_NULL_CONTEXT</code> otherwise.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf85af88" class="outline-3">
|
||||
<h3 id="orgf85af88"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-org65efe78" class="outline-3">
|
||||
<h3 id="org65efe78"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
@ -502,8 +502,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgec2fd13" class="outline-3">
|
||||
<h3 id="orgec2fd13"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-org4f38f85" class="outline-3">
|
||||
<h3 id="org4f38f85"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
For thread safety, the context may be locked/unlocked. The lock is
|
||||
@ -548,8 +548,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd7be45f" class="outline-3">
|
||||
<h3 id="orgd7be45f"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-org72ba7bb" class="outline-3">
|
||||
<h3 id="org72ba7bb"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
<code>qmckl_context_copy</code> makes a deep copy of a context. It returns
|
||||
@ -597,8 +597,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org0d8d0bd" class="outline-3">
|
||||
<h3 id="org0d8d0bd"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org4b8a857" class="outline-3">
|
||||
<h3 id="org4b8a857"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
The context is destroyed with <code>qmckl_context_destroy</code>, leaving the ancestors untouched.
|
||||
@ -652,7 +652,7 @@ It frees the context, and returns the previous context.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</p>
|
||||
<p class="date">Created: 2021-06-25 Fri 15:38</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<!-- 2021-06-25 Fri 15:38 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Inter-particle distances</title>
|
||||
@ -333,50 +333,50 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org32f745b">1. Squared distance</a>
|
||||
<li><a href="#org55cbfd1">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org60f2868">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#org5fe0496">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#orga7be88f">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org3179744">1.1.2. C header</a></li>
|
||||
<li><a href="#org9431f6f">1.1.3. Source</a></li>
|
||||
<li><a href="#orgb92e57d">1.1.4. Performance</a></li>
|
||||
<li><a href="#orgc3cd028">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org120b940">1.1.2. C header</a></li>
|
||||
<li><a href="#orgc3a4864">1.1.3. Source</a></li>
|
||||
<li><a href="#orgbba6842">1.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org279c5e2">2. Distance</a>
|
||||
<li><a href="#org39e63a7">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org47419ee">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#orgf9e75de">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org140f692">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org137c59e">2.1.2. C header</a></li>
|
||||
<li><a href="#org78b8156">2.1.3. Source</a></li>
|
||||
<li><a href="#orgf0a8ebe">2.1.4. Performance</a></li>
|
||||
<li><a href="#orge16ef25">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgfd06df8">2.1.2. C header</a></li>
|
||||
<li><a href="#orgc2db764">2.1.3. Source</a></li>
|
||||
<li><a href="#org57f3e37">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org57fa08a">3. Rescaled Distance</a>
|
||||
<li><a href="#orge9b892a">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org133ba62">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#org04dbd26">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org06a1929">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org5259906">3.1.2. C header</a></li>
|
||||
<li><a href="#org68ca225">3.1.3. Source</a></li>
|
||||
<li><a href="#org154aebc">3.1.4. Performance</a></li>
|
||||
<li><a href="#org57a7a98">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org0c995bb">3.1.2. C header</a></li>
|
||||
<li><a href="#orgffcd881">3.1.3. Source</a></li>
|
||||
<li><a href="#orgebc9118">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org24efaa7">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#org0ed6df2">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org2aa2613">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a>
|
||||
<li><a href="#org3508ab3">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgd111347">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org38de286">4.1.2. C header</a></li>
|
||||
<li><a href="#orgf9d239d">4.1.3. Source</a></li>
|
||||
<li><a href="#org529813c">4.1.4. Performance</a></li>
|
||||
<li><a href="#org59edb7e">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org0e4c4c4">4.1.2. C header</a></li>
|
||||
<li><a href="#org6bf6a30">4.1.3. Source</a></li>
|
||||
<li><a href="#org1a7edd2">4.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -385,12 +385,12 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org32f745b" class="outline-2">
|
||||
<h2 id="org32f745b"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org55cbfd1" class="outline-2">
|
||||
<h2 id="org55cbfd1"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org60f2868" class="outline-3">
|
||||
<h3 id="org60f2868"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-org5fe0496" class="outline-3">
|
||||
<h3 id="org5fe0496"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
<code>qmckl_distance_sq</code> computes the matrix of the squared distances
|
||||
@ -403,7 +403,7 @@ between all pairs of points in two sets, one point within each set:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org58b801e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdcf11f3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -496,8 +496,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga7be88f" class="outline-4">
|
||||
<h4 id="orga7be88f"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgc3cd028" class="outline-4">
|
||||
<h4 id="orgc3cd028"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -515,8 +515,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3179744" class="outline-4">
|
||||
<h4 id="org3179744"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div id="outline-container-org120b940" class="outline-4">
|
||||
<h4 id="org120b940"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-1-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled_deriv_e</span> (
|
||||
@ -536,8 +536,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9431f6f" class="outline-4">
|
||||
<h4 id="org9431f6f"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgc3a4864" class="outline-4">
|
||||
<h4 id="orgc3a4864"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-1-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_sq_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -672,8 +672,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb92e57d" class="outline-4">
|
||||
<h4 id="orgb92e57d"><span class="section-number-4">1.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgbba6842" class="outline-4">
|
||||
<h4 id="orgbba6842"><span class="section-number-4">1.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-1-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are
|
||||
@ -683,12 +683,12 @@ transposed.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org279c5e2" class="outline-2">
|
||||
<h2 id="org279c5e2"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-org39e63a7" class="outline-2">
|
||||
<h2 id="org39e63a7"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org47419ee" class="outline-3">
|
||||
<h3 id="org47419ee"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-orgf9e75de" class="outline-3">
|
||||
<h3 id="orgf9e75de"><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="org4a97afb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7b79390" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -799,8 +799,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org140f692" class="outline-4">
|
||||
<h4 id="org140f692"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orge16ef25" class="outline-4">
|
||||
<h4 id="orge16ef25"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -818,8 +818,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org137c59e" class="outline-4">
|
||||
<h4 id="org137c59e"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgfd06df8" class="outline-4">
|
||||
<h4 id="orgfd06df8"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled_deriv_e</span> (
|
||||
@ -839,8 +839,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org78b8156" class="outline-4">
|
||||
<h4 id="org78b8156"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgc2db764" class="outline-4">
|
||||
<h4 id="orgc2db764"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -1007,8 +1007,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf0a8ebe" class="outline-4">
|
||||
<h4 id="orgf0a8ebe"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org57f3e37" class="outline-4">
|
||||
<h4 id="org57f3e37"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1018,12 +1018,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org57fa08a" class="outline-2">
|
||||
<h2 id="org57fa08a"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-orge9b892a" class="outline-2">
|
||||
<h2 id="orge9b892a"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org133ba62" class="outline-3">
|
||||
<h3 id="org133ba62"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-org04dbd26" class="outline-3">
|
||||
<h3 id="org04dbd26"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled</code> computes the matrix of the rescaled distances between all
|
||||
@ -1041,7 +1041,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="org247c803" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org79d9dba" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1141,8 +1141,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org06a1929" class="outline-4">
|
||||
<h4 id="org06a1929"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org57a7a98" class="outline-4">
|
||||
<h4 id="org57a7a98"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1160,8 +1160,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5259906" class="outline-4">
|
||||
<h4 id="org5259906"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org0c995bb" class="outline-4">
|
||||
<h4 id="org0c995bb"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled_deriv_e</span> (
|
||||
@ -1182,8 +1182,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org68ca225" class="outline-4">
|
||||
<h4 id="org68ca225"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgffcd881" class="outline-4">
|
||||
<h4 id="orgffcd881"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_rescaled_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -1353,8 +1353,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org154aebc" class="outline-4">
|
||||
<h4 id="org154aebc"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgebc9118" class="outline-4">
|
||||
<h4 id="orgebc9118"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-3-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1363,12 +1363,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org24efaa7" class="outline-2">
|
||||
<h2 id="org24efaa7"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-org0ed6df2" class="outline-2">
|
||||
<h2 id="org0ed6df2"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org2aa2613" class="outline-3">
|
||||
<h3 id="org2aa2613"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div id="outline-container-org3508ab3" class="outline-3">
|
||||
<h3 id="org3508ab3"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled_deriv_e</code> computes the matrix of the gradient and laplacian of the
|
||||
@ -1435,7 +1435,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="orgbc1bb61" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org955f63e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1535,8 +1535,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd111347" class="outline-4">
|
||||
<h4 id="orgd111347"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org59edb7e" class="outline-4">
|
||||
<h4 id="org59edb7e"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-4-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1554,8 +1554,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org38de286" class="outline-4">
|
||||
<h4 id="org38de286"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div id="outline-container-org0e4c4c4" class="outline-4">
|
||||
<h4 id="org0e4c4c4"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-4-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled_deriv_e</span> (
|
||||
@ -1576,8 +1576,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf9d239d" class="outline-4">
|
||||
<h4 id="orgf9d239d"><span class="section-number-4">4.1.3</span> Source</h4>
|
||||
<div id="outline-container-org6bf6a30" class="outline-4">
|
||||
<h4 id="org6bf6a30"><span class="section-number-4">4.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-4-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_rescaled_deriv_e_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -1768,8 +1768,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org529813c" class="outline-4">
|
||||
<h4 id="org529813c"><span class="section-number-4">4.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org1a7edd2" class="outline-4">
|
||||
<h4 id="org1a7edd2"><span class="section-number-4">4.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-4-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1781,7 +1781,7 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</p>
|
||||
<p class="date">Created: 2021-06-25 Fri 15:38</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<!-- 2021-06-25 Fri 15:38 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Electrons</title>
|
||||
@ -333,63 +333,63 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org2648ebc">1. Context</a>
|
||||
<li><a href="#org2197b3a">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgc69bf5c">1.1. Data structure</a></li>
|
||||
<li><a href="#orgdffda51">1.2. Access functions</a>
|
||||
<li><a href="#org17ff898">1.1. Data structure</a></li>
|
||||
<li><a href="#orgccb2c9f">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orga206fe5">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#org7d88d85">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#orgb11fbe0">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#org3e82504">1.2.4. Electron coordinates</a></li>
|
||||
<li><a href="#org23805e7">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#orgb91bdc8">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#org4c429f3">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#orgeeccb79">1.2.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5de51a5">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgb9fca91">1.4. Test</a></li>
|
||||
<li><a href="#orgf7303ad">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgc362dcc">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd745106">2. Computation</a>
|
||||
<li><a href="#orge4108f1">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org3fcb33e">2.1. Electron-electron distances</a>
|
||||
<li><a href="#org66cf2ce">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#org00e87d3">2.1.1. Get</a></li>
|
||||
<li><a href="#orgaf72175">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgf0d8091">2.1.3. Test</a></li>
|
||||
<li><a href="#org3c2ba8a">2.1.1. Get</a></li>
|
||||
<li><a href="#org2ca6df9">2.1.2. Compute</a></li>
|
||||
<li><a href="#org8c0b028">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org73f8dc0">2.2. Electron-electron rescaled distances</a>
|
||||
<li><a href="#org36d72db">2.2. Electron-electron rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#org2afb9dd">2.2.1. Get</a></li>
|
||||
<li><a href="#org8d00d24">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgdcdd2d5">2.2.3. Test</a></li>
|
||||
<li><a href="#org270109d">2.2.1. Get</a></li>
|
||||
<li><a href="#orga562c51">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgf363fb1">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org44ba1d9">2.3. Electron-electron rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<li><a href="#org6a1d006">2.3. Electron-electron rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#org0424901">2.3.1. Get</a></li>
|
||||
<li><a href="#orgc73b698">2.3.2. Compute</a></li>
|
||||
<li><a href="#org89d5c83">2.3.3. Test</a></li>
|
||||
<li><a href="#org46df6e7">2.3.1. Get</a></li>
|
||||
<li><a href="#orgfd18422">2.3.2. Compute</a></li>
|
||||
<li><a href="#org26a6d62">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6870e6f">2.4. Electron-nucleus distances</a>
|
||||
<li><a href="#org34bb713">2.4. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgb13a51c">2.4.1. Get</a></li>
|
||||
<li><a href="#org66d2a57">2.4.2. Compute</a></li>
|
||||
<li><a href="#orgf374e86">2.4.3. Test</a></li>
|
||||
<li><a href="#org62082ae">2.4.1. Get</a></li>
|
||||
<li><a href="#orgcc8b922">2.4.2. Compute</a></li>
|
||||
<li><a href="#org444301a">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org62e81bb">2.5. Electron-nucleus rescaled distances</a>
|
||||
<li><a href="#org0266419">2.5. Electron-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#org094d7b0">2.5.1. Get</a></li>
|
||||
<li><a href="#orgd397909">2.5.2. Compute</a></li>
|
||||
<li><a href="#orgeab612f">2.5.3. Test</a></li>
|
||||
<li><a href="#org90b9dcb">2.5.1. Get</a></li>
|
||||
<li><a href="#org452627c">2.5.2. Compute</a></li>
|
||||
<li><a href="#orgc70c842">2.5.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6103b7e">2.6. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<li><a href="#org2231182">2.6. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#orgb764395">2.6.1. Get</a></li>
|
||||
<li><a href="#orgca9be8f">2.6.2. Compute</a></li>
|
||||
<li><a href="#orgc8737e1">2.6.3. Test</a></li>
|
||||
<li><a href="#orgeabdeed">2.6.1. Get</a></li>
|
||||
<li><a href="#org5b61ee7">2.6.2. Compute</a></li>
|
||||
<li><a href="#orgc404d33">2.6.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -398,8 +398,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2648ebc" class="outline-2">
|
||||
<h2 id="org2648ebc"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org2197b3a" class="outline-2">
|
||||
<h2 id="org2197b3a"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -558,8 +558,8 @@ The following data stored in the context:
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgc69bf5c" class="outline-3">
|
||||
<h3 id="orgc69bf5c"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org17ff898" class="outline-3">
|
||||
<h3 id="org17ff898"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_electron_struct</span> {
|
||||
@ -634,8 +634,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdffda51" class="outline-3">
|
||||
<h3 id="orgdffda51"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgccb2c9f" class="outline-3">
|
||||
<h3 id="orgccb2c9f"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||
@ -647,12 +647,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga206fe5" class="outline-4">
|
||||
<h4 id="orga206fe5"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-org23805e7" class="outline-4">
|
||||
<h4 id="org23805e7"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7d88d85" class="outline-4">
|
||||
<h4 id="org7d88d85"><span class="section-number-4">1.2.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-orgb91bdc8" class="outline-4">
|
||||
<h4 id="orgb91bdc8"><span class="section-number-4">1.2.2</span> Number of walkers</h4>
|
||||
<div class="outline-text-4" id="text-1-2-2">
|
||||
<p>
|
||||
A walker is a set of electron coordinates that are arguments of
|
||||
@ -661,12 +661,12 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb11fbe0" class="outline-4">
|
||||
<h4 id="orgb11fbe0"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
<div id="outline-container-org4c429f3" class="outline-4">
|
||||
<h4 id="org4c429f3"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e82504" class="outline-4">
|
||||
<h4 id="org3e82504"><span class="section-number-4">1.2.4</span> Electron coordinates</h4>
|
||||
<div id="outline-container-orgeeccb79" class="outline-4">
|
||||
<h4 id="orgeeccb79"><span class="section-number-4">1.2.4</span> Electron coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-2-4">
|
||||
<p>
|
||||
Returns the current electron coordinates. The pointer is assumed
|
||||
@ -710,8 +710,8 @@ The order of the indices is:
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org5de51a5" class="outline-3">
|
||||
<h3 id="org5de51a5"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgf7303ad" class="outline-3">
|
||||
<h3 id="orgf7303ad"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the data relative to the electrons in the context, the
|
||||
@ -758,8 +758,8 @@ in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb9fca91" class="outline-3">
|
||||
<h3 id="orgb9fca91"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgc362dcc" class="outline-3">
|
||||
<h3 id="orgc362dcc"><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>*/
|
||||
@ -865,8 +865,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd745106" class="outline-2">
|
||||
<h2 id="orgd745106"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orge4108f1" class="outline-2">
|
||||
<h2 id="orge4108f1"><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
|
||||
@ -879,12 +879,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3fcb33e" class="outline-3">
|
||||
<h3 id="org3fcb33e"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-org66cf2ce" class="outline-3">
|
||||
<h3 id="org66cf2ce"><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-org00e87d3" class="outline-4">
|
||||
<h4 id="org00e87d3"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org3c2ba8a" class="outline-4">
|
||||
<h4 id="org3c2ba8a"><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>);
|
||||
@ -893,10 +893,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaf72175" class="outline-4">
|
||||
<h4 id="orgaf72175"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org2ca6df9" class="outline-4">
|
||||
<h4 id="org2ca6df9"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgee3a95c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4437ebd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -992,8 +992,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf0d8091" class="outline-4">
|
||||
<h4 id="orgf0d8091"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org8c0b028" class="outline-4">
|
||||
<h4 id="org8c0b028"><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>));
|
||||
@ -1027,8 +1027,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org73f8dc0" class="outline-3">
|
||||
<h3 id="org73f8dc0"><span class="section-number-3">2.2</span> Electron-electron rescaled distances</h3>
|
||||
<div id="outline-container-org36d72db" class="outline-3">
|
||||
<h3 id="org36d72db"><span class="section-number-3">2.2</span> Electron-electron rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
<code>ee_distance_rescaled</code> stores the matrix of the rescaled distances between all
|
||||
@ -1046,8 +1046,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2afb9dd" class="outline-4">
|
||||
<h4 id="org2afb9dd"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org270109d" class="outline-4">
|
||||
<h4 id="org270109d"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance_rescaled</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance_rescaled</span>);
|
||||
@ -1056,10 +1056,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8d00d24" class="outline-4">
|
||||
<h4 id="org8d00d24"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orga562c51" class="outline-4">
|
||||
<h4 id="orga562c51"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orga634f77" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9fae81a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1164,8 +1164,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdcdd2d5" class="outline-4">
|
||||
<h4 id="orgdcdd2d5"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgf363fb1" class="outline-4">
|
||||
<h4 id="orgf363fb1"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -1199,8 +1199,8 @@ rc = qmckl_get_electron_ee_distance_rescaled(context, ee_distance_rescaled);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org44ba1d9" class="outline-3">
|
||||
<h3 id="org44ba1d9"><span class="section-number-3">2.3</span> Electron-electron rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div id="outline-container-org6a1d006" class="outline-3">
|
||||
<h3 id="org6a1d006"><span class="section-number-3">2.3</span> Electron-electron rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
The rescaled distances which is given as \(R = (1 - \exp{-\kappa r})/\kappa\)
|
||||
@ -1212,8 +1212,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0424901" class="outline-4">
|
||||
<h4 id="org0424901"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org46df6e7" class="outline-4">
|
||||
<h4 id="org46df6e7"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance_rescaled_deriv_e</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance_rescaled_deriv_e</span>);
|
||||
@ -1222,10 +1222,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc73b698" class="outline-4">
|
||||
<h4 id="orgc73b698"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orgfd18422" class="outline-4">
|
||||
<h4 id="orgfd18422"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="orgef49729" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6e4476d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1330,8 +1330,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org89d5c83" class="outline-4">
|
||||
<h4 id="org89d5c83"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org26a6d62" class="outline-4">
|
||||
<h4 id="org26a6d62"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -1367,12 +1367,12 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org6870e6f" class="outline-3">
|
||||
<h3 id="org6870e6f"><span class="section-number-3">2.4</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-org34bb713" class="outline-3">
|
||||
<h3 id="org34bb713"><span class="section-number-3">2.4</span> Electron-nucleus distances</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
</div>
|
||||
<div id="outline-container-orgb13a51c" class="outline-4">
|
||||
<h4 id="orgb13a51c"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org62082ae" class="outline-4">
|
||||
<h4 id="org62082ae"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance</span>);
|
||||
@ -1381,10 +1381,10 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org66d2a57" class="outline-4">
|
||||
<h4 id="org66d2a57"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-orgcc8b922" class="outline-4">
|
||||
<h4 id="orgcc8b922"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="orgde76e1f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4d0ee58" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1501,8 +1501,8 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf374e86" class="outline-4">
|
||||
<h4 id="orgf374e86"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org444301a" class="outline-4">
|
||||
<h4 id="org444301a"><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">
|
||||
@ -1550,8 +1550,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org62e81bb" class="outline-3">
|
||||
<h3 id="org62e81bb"><span class="section-number-3">2.5</span> Electron-nucleus rescaled distances</h3>
|
||||
<div id="outline-container-org0266419" class="outline-3">
|
||||
<h3 id="org0266419"><span class="section-number-3">2.5</span> Electron-nucleus rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
<code>en_distance_rescaled</code> stores the matrix of the rescaled distances between
|
||||
@ -1569,8 +1569,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org094d7b0" class="outline-4">
|
||||
<h4 id="org094d7b0"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div id="outline-container-org90b9dcb" class="outline-4">
|
||||
<h4 id="org90b9dcb"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance_rescaled</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance_rescaled</span>);
|
||||
@ -1579,10 +1579,10 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd397909" class="outline-4">
|
||||
<h4 id="orgd397909"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div id="outline-container-org452627c" class="outline-4">
|
||||
<h4 id="org452627c"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-2">
|
||||
<table id="orgd9f76b4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf4d4141" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1714,8 +1714,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeab612f" class="outline-4">
|
||||
<h4 id="orgeab612f"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div id="outline-container-orgc70c842" class="outline-4">
|
||||
<h4 id="orgc70c842"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-5-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -1763,8 +1763,8 @@ rc = qmckl_get_electron_en_distance_rescaled(context, &(en_distance_rescaled
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6103b7e" class="outline-3">
|
||||
<h3 id="org6103b7e"><span class="section-number-3">2.6</span> Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div id="outline-container-org2231182" class="outline-3">
|
||||
<h3 id="org2231182"><span class="section-number-3">2.6</span> Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
The rescaled distances which is given as \(R = (1 - \exp{-\kappa r})/\kappa\)
|
||||
@ -1776,8 +1776,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb764395" class="outline-4">
|
||||
<h4 id="orgb764395"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div id="outline-container-orgeabdeed" class="outline-4">
|
||||
<h4 id="orgeabdeed"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-6-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance_rescaled_deriv_e</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance_rescaled_deriv_e</span>);
|
||||
@ -1786,10 +1786,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgca9be8f" class="outline-4">
|
||||
<h4 id="orgca9be8f"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div id="outline-container-org5b61ee7" class="outline-4">
|
||||
<h4 id="org5b61ee7"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-6-2">
|
||||
<table id="org3c7c7aa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4b62587" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1922,8 +1922,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc8737e1" class="outline-4">
|
||||
<h4 id="orgc8737e1"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div id="outline-container-orgc404d33" class="outline-4">
|
||||
<h4 id="orgc404d33"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-6-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -1978,7 +1978,7 @@ rc = qmckl_get_electron_en_distance_rescaled_deriv_e(context, &(en_distance_
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</p>
|
||||
<p class="date">Created: 2021-06-25 Fri 15:38</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<!-- 2021-06-25 Fri 15:38 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Error handling</title>
|
||||
@ -311,17 +311,17 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org8bd372c">1. Decoding errors</a></li>
|
||||
<li><a href="#org75f3cf5">2. Data structure in context</a></li>
|
||||
<li><a href="#orgd07190e">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgbd60f2c">4. Get the error</a></li>
|
||||
<li><a href="#orgb07505c">5. Failing</a></li>
|
||||
<li><a href="#orgf5e0fa1">1. Decoding errors</a></li>
|
||||
<li><a href="#org0f2da95">2. Data structure in context</a></li>
|
||||
<li><a href="#orga2db94c">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgd1ee45b">4. Get the error</a></li>
|
||||
<li><a href="#org82d9666">5. Failing</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8bd372c" class="outline-2">
|
||||
<h2 id="org8bd372c"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-orgf5e0fa1" class="outline-2">
|
||||
<h2 id="orgf5e0fa1"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
To decode the error messages, <code>qmckl_string_of_error</code> converts an
|
||||
@ -451,8 +451,8 @@ The text strings are extracted from the previous table.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org75f3cf5" class="outline-2">
|
||||
<h2 id="org75f3cf5"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org0f2da95" class="outline-2">
|
||||
<h2 id="org0f2da95"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The strings are declared with a maximum fixed size to avoid
|
||||
@ -475,8 +475,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd07190e" class="outline-2">
|
||||
<h2 id="orgd07190e"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-orga2db94c" class="outline-2">
|
||||
<h2 id="orga2db94c"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
The error is updated in the context using <code>qmckl_set_error</code>.
|
||||
@ -522,8 +522,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd60f2c" class="outline-2">
|
||||
<h2 id="orgbd60f2c"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-orgd1ee45b" class="outline-2">
|
||||
<h2 id="orgd1ee45b"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
Upon error, the error type and message can be obtained from the
|
||||
@ -564,8 +564,8 @@ function name and message is mandatory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb07505c" class="outline-2">
|
||||
<h2 id="orgb07505c"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-org82d9666" class="outline-2">
|
||||
<h2 id="org82d9666"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
<p>
|
||||
To make a function fail, the <code>qmckl_failwith</code> function should be
|
||||
@ -628,7 +628,7 @@ For example, this function can be used as
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</p>
|
||||
<p class="date">Created: 2021-06-25 Fri 15:38</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<!-- 2021-06-25 Fri 15:38 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Memory management</title>
|
||||
@ -311,15 +311,15 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org3e23a08">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#orgc1c4a56">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgf7f9b43">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orgc6d2289">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#orgf18374e">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgcf10ad5">3. Allocation/deallocation functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e23a08" class="outline-2">
|
||||
<h2 id="org3e23a08"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-orgc6d2289" class="outline-2">
|
||||
<h2 id="orgc6d2289"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Every time a new block of memory is allocated, the information
|
||||
@ -361,8 +361,8 @@ array, and the number of allocated blocks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc1c4a56" class="outline-2">
|
||||
<h2 id="orgc1c4a56"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-orgf18374e" class="outline-2">
|
||||
<h2 id="orgf18374e"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
Passing information to the allocation routine should be done by
|
||||
@ -371,8 +371,8 @@ passing an instance of a <code>qmckl_memory_info_struct</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf7f9b43" class="outline-2">
|
||||
<h2 id="orgf7f9b43"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-orgcf10ad5" class="outline-2">
|
||||
<h2 id="orgcf10ad5"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
Memory allocation inside the library should be done with
|
||||
@ -535,7 +535,7 @@ allocation and needs to be updated.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</p>
|
||||
<p class="date">Created: 2021-06-25 Fri 15:38</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<!-- 2021-06-25 Fri 15:38 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Nucleus</title>
|
||||
@ -333,35 +333,35 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc7bbb87">1. Context</a>
|
||||
<li><a href="#org76f784a">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org01396fb">1.1. Data structure</a></li>
|
||||
<li><a href="#org6f268ca">1.2. Access functions</a></li>
|
||||
<li><a href="#orgf3159b8">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgf530cf9">1.4. Test</a></li>
|
||||
<li><a href="#org98b75f1">1.1. Data structure</a></li>
|
||||
<li><a href="#org3501394">1.2. Access functions</a></li>
|
||||
<li><a href="#org25a37e8">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org8867d5f">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0424afa">2. Computation</a>
|
||||
<li><a href="#org60da6b9">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org3d7fd1e">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#org0dc54f5">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org56e41d5">2.1.1. Get</a></li>
|
||||
<li><a href="#org98643a0">2.1.2. Compute</a></li>
|
||||
<li><a href="#org1581235">2.1.3. Test</a></li>
|
||||
<li><a href="#org9b9bf13">2.1.1. Get</a></li>
|
||||
<li><a href="#orge958de0">2.1.2. Compute</a></li>
|
||||
<li><a href="#org2b4a559">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1176055">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<li><a href="#org4b5cf78">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgca9d5bd">2.2.1. Get</a></li>
|
||||
<li><a href="#org0a74b48">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgd4ee3c0">2.2.3. Test</a></li>
|
||||
<li><a href="#org8bd3576">2.2.1. Get</a></li>
|
||||
<li><a href="#org701c062">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgd5dbb6f">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbf79479">2.3. Nuclear repulsion energy</a>
|
||||
<li><a href="#org34fdcab">2.3. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgba276ec">2.3.1. Get</a></li>
|
||||
<li><a href="#org90b2c58">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgd04d6d2">2.3.3. Test</a></li>
|
||||
<li><a href="#org4deac70">2.3.1. Get</a></li>
|
||||
<li><a href="#org581b554">2.3.2. Compute</a></li>
|
||||
<li><a href="#orga16cd14">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -370,8 +370,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc7bbb87" class="outline-2">
|
||||
<h2 id="orgc7bbb87"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org76f784a" class="outline-2">
|
||||
<h2 id="org76f784a"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -463,8 +463,8 @@ The following data stored in the context:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org01396fb" class="outline-3">
|
||||
<h3 id="org01396fb"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org98b75f1" class="outline-3">
|
||||
<h3 id="org98b75f1"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_nucleus_struct</span> {
|
||||
@ -523,8 +523,8 @@ this mechanism.
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-org6f268ca" class="outline-3">
|
||||
<h3 id="org6f268ca"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org3501394" class="outline-3">
|
||||
<h3 id="org3501394"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data relative to nuclei have been set, the following
|
||||
@ -538,8 +538,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf3159b8" class="outline-3">
|
||||
<h3 id="orgf3159b8"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org25a37e8" class="outline-3">
|
||||
<h3 id="org25a37e8"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the data relative to the nuclei in the context, the
|
||||
@ -574,8 +574,8 @@ atoms. The coordinates should be given in atomic units.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf530cf9" class="outline-3">
|
||||
<h3 id="orgf530cf9"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org8867d5f" class="outline-3">
|
||||
<h3 id="org8867d5f"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nucl_num</span> = chbrclf_nucl_num;
|
||||
@ -659,8 +659,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0424afa" class="outline-2">
|
||||
<h2 id="org0424afa"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org60da6b9" class="outline-2">
|
||||
<h2 id="org60da6b9"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The computed data is stored in the context so that it can be reused
|
||||
@ -673,12 +673,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3d7fd1e" class="outline-3">
|
||||
<h3 id="org3d7fd1e"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-org0dc54f5" class="outline-3">
|
||||
<h3 id="org0dc54f5"><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-org56e41d5" class="outline-4">
|
||||
<h4 id="org56e41d5"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org9b9bf13" class="outline-4">
|
||||
<h4 id="org9b9bf13"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_nn_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance</span>);
|
||||
@ -687,10 +687,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org98643a0" class="outline-4">
|
||||
<h4 id="org98643a0"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orge958de0" class="outline-4">
|
||||
<h4 id="orge958de0"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgbcd258a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org29185d4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -768,8 +768,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1581235" class="outline-4">
|
||||
<h4 id="org1581235"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org2b4a559" class="outline-4">
|
||||
<h4 id="org2b4a559"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -789,12 +789,12 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org1176055" class="outline-3">
|
||||
<h3 id="org1176055"><span class="section-number-3">2.2</span> Nucleus-nucleus rescaled distances</h3>
|
||||
<div id="outline-container-org4b5cf78" class="outline-3">
|
||||
<h3 id="org4b5cf78"><span class="section-number-3">2.2</span> Nucleus-nucleus rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div id="outline-container-orgca9d5bd" class="outline-4">
|
||||
<h4 id="orgca9d5bd"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org8bd3576" class="outline-4">
|
||||
<h4 id="org8bd3576"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_nn_distance_rescaled</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance_rescaled</span>);
|
||||
@ -803,10 +803,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a74b48" class="outline-4">
|
||||
<h4 id="org0a74b48"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org701c062" class="outline-4">
|
||||
<h4 id="org701c062"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgf56c7f2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org24ad46c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -885,8 +885,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd4ee3c0" class="outline-4">
|
||||
<h4 id="orgd4ee3c0"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgd5dbb6f" class="outline-4">
|
||||
<h4 id="orgd5dbb6f"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -906,8 +906,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf79479" class="outline-3">
|
||||
<h3 id="orgbf79479"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-org34fdcab" class="outline-3">
|
||||
<h3 id="org34fdcab"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
\[
|
||||
@ -916,8 +916,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgba276ec" class="outline-4">
|
||||
<h4 id="orgba276ec"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org4deac70" class="outline-4">
|
||||
<h4 id="org4deac70"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_repulsion</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">energy</span>);
|
||||
@ -926,10 +926,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org90b2c58" class="outline-4">
|
||||
<h4 id="org90b2c58"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org581b554" class="outline-4">
|
||||
<h4 id="org581b554"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org311022c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org785e267" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1017,8 +1017,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd04d6d2" class="outline-4">
|
||||
<h4 id="orgd04d6d2"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-orga16cd14" class="outline-4">
|
||||
<h4 id="orga16cd14"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -1038,7 +1038,7 @@ rc = qmckl_get_nucleus_repulsion(context, &rep);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</p>
|
||||
<p class="date">Created: 2021-06-25 Fri 15:38</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<!-- 2021-06-25 Fri 15:38 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Numerical precision</title>
|
||||
@ -333,16 +333,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org9e467d2">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#orge67a7da">2. Precision</a></li>
|
||||
<li><a href="#org1ecdc63">3. Range</a></li>
|
||||
<li><a href="#org521e1e1">4. Helper functions</a></li>
|
||||
<li><a href="#org234f412">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org71e6aa2">2. Precision</a></li>
|
||||
<li><a href="#orga4f377d">3. Range</a></li>
|
||||
<li><a href="#org8b60c59">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9e467d2" class="outline-2">
|
||||
<h2 id="org9e467d2"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org234f412" class="outline-2">
|
||||
<h2 id="org234f412"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Controlling numerical precision enables optimizations. Here, the
|
||||
@ -353,7 +353,7 @@ Arithmetic (IEEE 754),
|
||||
refers to the number of exponent bits.
|
||||
</p>
|
||||
|
||||
<table id="orgbea264b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfabfd08" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -397,8 +397,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge67a7da" class="outline-2">
|
||||
<h2 id="orge67a7da"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org71e6aa2" class="outline-2">
|
||||
<h2 id="org71e6aa2"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
<code>qmckl_context_set_numprec_precision</code> modifies the parameter for the
|
||||
@ -485,8 +485,8 @@ numerical precision in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ecdc63" class="outline-2">
|
||||
<h2 id="org1ecdc63"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-orga4f377d" class="outline-2">
|
||||
<h2 id="orga4f377d"><span class="section-number-2">3</span> Range</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
<code>qmckl_set_numprec_range</code> modifies the parameter for the numerical
|
||||
@ -561,8 +561,8 @@ range in a given context.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org521e1e1" class="outline-2">
|
||||
<h2 id="org521e1e1"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-org8b60c59" class="outline-2">
|
||||
<h2 id="org8b60c59"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
<code>qmckl_get_numprec_epsilon</code> returns \(\epsilon = 2^{1-n}\) where <code>n</code> is the precision.
|
||||
@ -581,7 +581,7 @@ We need to remove the sign bit from the precision.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</p>
|
||||
<p class="date">Created: 2021-06-25 Fri 15:38</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<!-- 2021-06-25 Fri 15:38 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Data for Tests</title>
|
||||
@ -233,20 +233,20 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orge832bd8">1. CHBrClF</a>
|
||||
<li><a href="#org3b33ec7">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#org2d49b20">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org9bf98b7">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org2ad2f13">1.3. <span class="todo TODO">TODO</span> Molecular orbitals</a></li>
|
||||
<li><a href="#org9be6784">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org9cfbe7c">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgda11bff">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org1adc2aa">1.3. <span class="todo TODO">TODO</span> Molecular orbitals</a></li>
|
||||
<li><a href="#org4b649ba">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge832bd8" class="outline-2">
|
||||
<h2 id="orge832bd8"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org3b33ec7" class="outline-2">
|
||||
<h2 id="org3b33ec7"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
This test is the all-electron Hartree-Fock wave function of CHClBr,
|
||||
@ -330,8 +330,8 @@ and with a high maximum angular momentum.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org2d49b20" class="outline-3">
|
||||
<h3 id="org2d49b20"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org9cfbe7c" class="outline-3">
|
||||
<h3 id="org9cfbe7c"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<pre class="example">
|
||||
5
|
||||
@ -361,8 +361,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9bf98b7" class="outline-3">
|
||||
<h3 id="org9bf98b7"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-orgda11bff" class="outline-3">
|
||||
<h3 id="orgda11bff"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<pre class="example">
|
||||
HYDROGEN
|
||||
@ -1175,11 +1175,11 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2ad2f13" class="outline-3">
|
||||
<h3 id="org2ad2f13"><span class="section-number-3">1.3</span> <span class="todo TODO">TODO</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org1adc2aa" class="outline-3">
|
||||
<h3 id="org1adc2aa"><span class="section-number-3">1.3</span> <span class="todo TODO">TODO</span> Molecular orbitals</h3>
|
||||
</div>
|
||||
<div id="outline-container-org9be6784" class="outline-3">
|
||||
<h3 id="org9be6784"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org4b649ba" class="outline-3">
|
||||
<h3 id="org4b649ba"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Electron coordinates are stored in atomic units in normal format.
|
||||
@ -1339,7 +1339,7 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</p>
|
||||
<p class="date">Created: 2021-06-25 Fri 15:38</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<!-- 2021-06-25 Fri 15:38 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Utility functions</title>
|
||||
@ -333,13 +333,13 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org8c53743">1. Matrix operations</a>
|
||||
<li><a href="#org35fc580">1. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#orga664369">1.1. <code>qmckl_transpose</code></a>
|
||||
<li><a href="#org1d998d1">1.1. <code>qmckl_transpose</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgf33a386">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org379d5bb">1.1.2. C header</a></li>
|
||||
<li><a href="#orgb6ce8d6">1.1.3. Source</a></li>
|
||||
<li><a href="#orgaa5d1c8">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org075b9a7">1.1.2. C header</a></li>
|
||||
<li><a href="#orgec6f4f1">1.1.3. Source</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -348,18 +348,18 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8c53743" class="outline-2">
|
||||
<h2 id="org8c53743"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div id="outline-container-org35fc580" class="outline-2">
|
||||
<h2 id="org35fc580"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orga664369" class="outline-3">
|
||||
<h3 id="orga664369"><span class="section-number-3">1.1</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org1d998d1" class="outline-3">
|
||||
<h3 id="org1d998d1"><span class="section-number-3">1.1</span> <code>qmckl_transpose</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</p>
|
||||
|
||||
<table id="org961e845" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org64b603d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -424,8 +424,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf33a386" class="outline-4">
|
||||
<h4 id="orgf33a386"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgaa5d1c8" class="outline-4">
|
||||
<h4 id="orgaa5d1c8"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -439,8 +439,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org379d5bb" class="outline-4">
|
||||
<h4 id="org379d5bb"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div id="outline-container-org075b9a7" class="outline-4">
|
||||
<h4 id="org075b9a7"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-1-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_transpose</span> (
|
||||
@ -456,8 +456,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb6ce8d6" class="outline-4">
|
||||
<h4 id="orgb6ce8d6"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgec6f4f1" class="outline-4">
|
||||
<h4 id="orgec6f4f1"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-1-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer </span><span style="color: #a020f0;">function</span><span style="color: #a0522d;"> </span><span style="color: #0000ff;">qmckl_transpose_f</span><span style="color: #000000; background-color: #ffffff;">(context, m, n, A, LDA, B, LDB)</span><span style="color: #a0522d;"> </span><span style="color: #a020f0;">&</span>
|
||||
@ -516,7 +516,7 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</p>
|
||||
<p class="date">Created: 2021-06-25 Fri 15:38</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