mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-08 04:19:15 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@ea11fd3b15 🚀
This commit is contained in:
parent
e37c09e4bc
commit
0aa95630fb
23
README.html
23
README.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>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<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>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -362,7 +375,7 @@ and bug reports should be submitted at
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
137
qmckl.html
137
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>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Introduction</title>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -333,36 +346,36 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org5bd46ba">1. Installing QMCkl</a>
|
||||
<li><a href="#org01a8546">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orge46500f">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org2c0c250">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#org56250ea">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org02536c9">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcc168d5">2. Using QMCkl</a></li>
|
||||
<li><a href="#orgbb8d061">3. Developing in QMCkl</a>
|
||||
<li><a href="#org2001314">2. Using QMCkl</a></li>
|
||||
<li><a href="#orgc3757fb">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org7d48a0c">3.1. Literate programming</a></li>
|
||||
<li><a href="#org86908f7">3.2. Source code editing</a></li>
|
||||
<li><a href="#orgf97b49a">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orgc587aef">3.4. Coding rules</a></li>
|
||||
<li><a href="#orgab519c4">3.5. Design of the library</a></li>
|
||||
<li><a href="#orgb5c9a68">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org9780f59">3.7. Application programming interface</a></li>
|
||||
<li><a href="#orgb041298">3.8. Global state</a></li>
|
||||
<li><a href="#orgbf7538f">3.9. Headers</a></li>
|
||||
<li><a href="#org50851c0">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orgf2593e3">3.11. High-level functions</a></li>
|
||||
<li><a href="#org55d0d2a">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org3d73b3c">3.13. Algorithms</a></li>
|
||||
<li><a href="#orgdaf5baf">3.1. Literate programming</a></li>
|
||||
<li><a href="#org9ad5f3e">3.2. Source code editing</a></li>
|
||||
<li><a href="#org7045199">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org636b177">3.4. Coding rules</a></li>
|
||||
<li><a href="#org1ff9513">3.5. Design of the library</a></li>
|
||||
<li><a href="#org601aa84">3.6. Naming conventions</a></li>
|
||||
<li><a href="#orgfe40593">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org5ab77d2">3.8. Global state</a></li>
|
||||
<li><a href="#orgd7c3313">3.9. Headers</a></li>
|
||||
<li><a href="#org54124ad">3.10. Low-level functions</a></li>
|
||||
<li><a href="#org82c5898">3.11. High-level functions</a></li>
|
||||
<li><a href="#org6ec3db9">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org63ad49d">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5bd46ba" class="outline-2">
|
||||
<h2 id="org5bd46ba"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-org01a8546" class="outline-2">
|
||||
<h2 id="org01a8546"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The latest version fo QMCkl can be downloaded
|
||||
@ -371,8 +384,8 @@ The latest version fo QMCkl can be downloaded
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge46500f" class="outline-3">
|
||||
<h3 id="orge46500f"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-org56250ea" class="outline-3">
|
||||
<h3 id="org56250ea"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
QMCkl is built with GNU Autotools, so the usual
|
||||
@ -387,8 +400,8 @@ options are defined using <code>CFLAGS</code> and <code>FCFLAGS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c0c250" class="outline-3">
|
||||
<h3 id="org2c0c250"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-org02536c9" class="outline-3">
|
||||
<h3 id="org02536c9"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To compile from the source repository, additional dependencies are
|
||||
@ -409,8 +422,8 @@ to be executed first.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcc168d5" class="outline-2">
|
||||
<h2 id="orgcc168d5"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org2001314" class="outline-2">
|
||||
<h2 id="org2001314"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The <code>qmckl.h</code> header file installed in the <code>${prefix}/include</code> directory
|
||||
@ -439,12 +452,12 @@ Both files are located in the <code>include/</code> directory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb8d061" class="outline-2">
|
||||
<h2 id="orgbb8d061"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-orgc3757fb" class="outline-2">
|
||||
<h2 id="orgc3757fb"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org7d48a0c" class="outline-3">
|
||||
<h3 id="org7d48a0c"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-orgdaf5baf" class="outline-3">
|
||||
<h3 id="orgdaf5baf"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
In a traditional source code, most of the lines of source files of a program
|
||||
@ -494,8 +507,8 @@ tarball contains the generated source code.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org86908f7" class="outline-3">
|
||||
<h3 id="org86908f7"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-org9ad5f3e" class="outline-3">
|
||||
<h3 id="org9ad5f3e"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<p>
|
||||
For a tutorial on literate programming with org-mode, follow <a href="http://www.howardism.org/Technical/Emacs/literate-programming-tutorial.html">this link</a>.
|
||||
@ -526,8 +539,8 @@ org-mode.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf97b49a" class="outline-3">
|
||||
<h3 id="orgf97b49a"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org7045199" class="outline-3">
|
||||
<h3 id="org7045199"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<p>
|
||||
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some
|
||||
@ -591,8 +604,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc587aef" class="outline-3">
|
||||
<h3 id="orgc587aef"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-org636b177" class="outline-3">
|
||||
<h3 id="org636b177"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div class="outline-text-3" id="text-3-4">
|
||||
<p>
|
||||
The authors should follow the recommendations of the C99
|
||||
@ -612,8 +625,8 @@ make cppcheck ; cat cppcheck.out
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgab519c4" class="outline-3">
|
||||
<h3 id="orgab519c4"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-org1ff9513" class="outline-3">
|
||||
<h3 id="org1ff9513"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div class="outline-text-3" id="text-3-5">
|
||||
<p>
|
||||
The proposed API should allow the library to: deal with memory transfers
|
||||
@ -624,8 +637,8 @@ functions (see below).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb5c9a68" class="outline-3">
|
||||
<h3 id="orgb5c9a68"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-org601aa84" class="outline-3">
|
||||
<h3 id="org601aa84"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div class="outline-text-3" id="text-3-6">
|
||||
<p>
|
||||
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
||||
@ -646,8 +659,8 @@ form is allowed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9780f59" class="outline-3">
|
||||
<h3 id="org9780f59"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-orgfe40593" class="outline-3">
|
||||
<h3 id="orgfe40593"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div class="outline-text-3" id="text-3-7">
|
||||
<p>
|
||||
In the C language, the number of bits used by the integer types can change
|
||||
@ -679,15 +692,15 @@ bindings in other languages in other repositories.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb041298" class="outline-3">
|
||||
<h3 id="orgb041298"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-org5ab77d2" class="outline-3">
|
||||
<h3 id="org5ab77d2"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div class="outline-text-3" id="text-3-8">
|
||||
<p>
|
||||
Global variables should be avoided in the library, because it is
|
||||
possible that one single program needs to use multiple instances
|
||||
of the library. To solve this problem we propose to use a pointer
|
||||
to a <a href="./qmckl_context.html"><code>context</code></a> variable, built by the library with the
|
||||
<code>qmckl_context_create</code> function. The <a id="orgdc75500">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="orga350aea">=context=</a> contains the global
|
||||
state of the library, and is used as the first argument of many
|
||||
QMCkl functions.
|
||||
</p>
|
||||
@ -701,8 +714,8 @@ the state is done by setters and getters, prefixed by
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf7538f" class="outline-3">
|
||||
<h3 id="orgbf7538f"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-orgd7c3313" class="outline-3">
|
||||
<h3 id="orgd7c3313"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div class="outline-text-3" id="text-3-9">
|
||||
<p>
|
||||
A single <code>qmckl.h</code> header to be distributed by the library
|
||||
@ -790,8 +803,8 @@ and the types definitions should be written in the <code>*fh_type.f90</code> fil
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org50851c0" class="outline-3">
|
||||
<h3 id="org50851c0"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org54124ad" class="outline-3">
|
||||
<h3 id="org54124ad"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div class="outline-text-3" id="text-3-10">
|
||||
<p>
|
||||
Low-level functions are very simple functions which are leaves of
|
||||
@ -800,14 +813,14 @@ the function call tree (they don't call any other QMCkl function).
|
||||
|
||||
<p>
|
||||
These functions are <i>pure</i>, and unaware of the QMCkl
|
||||
<a href="#orgdc75500"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#orga350aea"><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-orgf2593e3" class="outline-3">
|
||||
<h3 id="orgf2593e3"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-org82c5898" class="outline-3">
|
||||
<h3 id="org82c5898"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div class="outline-text-3" id="text-3-11">
|
||||
<p>
|
||||
High-level functions are at the top of the function call tree.
|
||||
@ -819,8 +832,8 @@ temporary storage, to simplify the use of accelerators.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org55d0d2a" class="outline-3">
|
||||
<h3 id="org55d0d2a"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org6ec3db9" class="outline-3">
|
||||
<h3 id="org6ec3db9"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div class="outline-text-3" id="text-3-12">
|
||||
<p>
|
||||
The minimal number of bits of precision required for a function
|
||||
@ -828,7 +841,7 @@ should be given as an input of low-level computational
|
||||
functions. This input will be used to define the values of the
|
||||
different thresholds that might be used to avoid computing
|
||||
unnecessary noise. High-level functions will use the precision
|
||||
specified in the <a href="#orgdc75500"><code>context</code></a> variable.
|
||||
specified in the <a href="#orga350aea"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -896,8 +909,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3d73b3c" class="outline-3">
|
||||
<h3 id="org3d73b3c"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org63ad49d" class="outline-3">
|
||||
<h3 id="org63ad49d"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div class="outline-text-3" id="text-3-13">
|
||||
<p>
|
||||
Reducing the scaling of an algorithm usually implies also reducing
|
||||
@ -913,7 +926,7 @@ implemented adapted to different problem sizes.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
231
qmckl_ao.html
231
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>
|
||||
<!-- 2022-11-17 Thu 18:27 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<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>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -333,61 +346,61 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org71b5c0b">1. Introduction</a></li>
|
||||
<li><a href="#org10e2829">2. Context</a>
|
||||
<li><a href="#org0d0c9db">1. Introduction</a></li>
|
||||
<li><a href="#org98b8644">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org3589ccb">2.1. Constant data</a>
|
||||
<li><a href="#org26bfb3c">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#org4d36e3c">2.1.1. Initialization functions</a>
|
||||
<li><a href="#org55413fd">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#org34956e9">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org44bb0b8">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#org54c2b88">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org327dcff">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6bdf00c">2.1.2. Access functions</a>
|
||||
<li><a href="#orgab94929">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org66499ec">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org007b2bd">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org909e610">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org14db991">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org65198c4">2.2. Computed data</a>
|
||||
<li><a href="#orgf749f0d">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#org8d722f8">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org5e61af0">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orgef9402c">2.2.3. Access functions</a></li>
|
||||
<li><a href="#org5716464">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org57d8afa">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org2101e44">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf0df458">3. Radial part</a>
|
||||
<li><a href="#org58b24f1">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org031af02">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org6b09e61">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#orgfb6aacf">3.3. Computation of shells</a></li>
|
||||
<li><a href="#org8bd8e35">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org4e7b426">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org9e5c357">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org03a2959">4. Polynomial part</a>
|
||||
<li><a href="#org2eaadf2">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org79353b5">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org1362a84">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#orgf14794a">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#orge511939">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcce224e">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#org10ac589">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#org6ff649f">5.1. Values only</a>
|
||||
<li><a href="#orga2ab5f1">5.1. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#org1d76168">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgfa64fdc">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org2f2be96">5.1.3. Interfaces</a></li>
|
||||
<li><a href="#org73b327b">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#org5101ab2">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org573d5ec">5.1.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd1e1b66">5.2. Value, gradients, Laplacian</a>
|
||||
<li><a href="#orgbe4b2ed">5.2. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org2a2b904">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#org8021602">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org587fc8a">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#orgf11741b">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#org1945ad7">5.2.2. HPC version</a></li>
|
||||
<li><a href="#orgada78df">5.2.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -396,8 +409,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org71b5c0b" class="outline-2">
|
||||
<h2 id="org71b5c0b"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-org0d0c9db" class="outline-2">
|
||||
<h2 id="org0d0c9db"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The atomic basis set is defined as a list of shells. Each shell \(s\) is
|
||||
@ -450,19 +463,19 @@ gradients and Laplacian of the atomic basis functions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org10e2829" class="outline-2">
|
||||
<h2 id="org10e2829"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-org98b8644" class="outline-2">
|
||||
<h2 id="org98b8644"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org3589ccb" class="outline-3">
|
||||
<h3 id="org3589ccb"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-org26bfb3c" class="outline-3">
|
||||
<h3 id="org26bfb3c"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
The following arrays are stored in the context, and need to be set
|
||||
when initializing the library:
|
||||
</p>
|
||||
|
||||
<table id="org708492f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgeace412" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -636,7 +649,7 @@ calling the functions:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="org07078d8"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<pre class="src src-C" id="orgb0b40c6"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> $type_of_V$ $V$);
|
||||
|
||||
<span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_ao_basis_$V$</span> ( <span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -673,7 +686,7 @@ For array variables, use the rule:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="orgafce913"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<pre class="src src-C" id="org8668472"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> $type_of_V$ $V$,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
||||
|
||||
@ -711,17 +724,17 @@ For array variables, use the rule:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4d36e3c" class="outline-4">
|
||||
<h4 id="org4d36e3c"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-org55413fd" class="outline-4">
|
||||
<h4 id="org55413fd"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<p>
|
||||
<code>size_max</code> is the dimension of the input array, which should be
|
||||
equal of larger than the value given in the table of section <a href="#org10e2829">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org98b8644">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org34956e9" class="outline-5">
|
||||
<h5 id="org34956e9"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-org54c2b88" class="outline-5">
|
||||
<h5 id="org54c2b88"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-1-1">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -845,8 +858,8 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org44bb0b8" class="outline-5">
|
||||
<h5 id="org44bb0b8"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org327dcff" class="outline-5">
|
||||
<h5 id="org327dcff"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||
@ -1029,17 +1042,17 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6bdf00c" class="outline-4">
|
||||
<h4 id="org6bdf00c"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-orgab94929" class="outline-4">
|
||||
<h4 id="orgab94929"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<p>
|
||||
<code>size_max</code> is the dimension of the input array, which should be
|
||||
equal of larger than the value given in the table of section <a href="#org10e2829">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org98b8644">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org66499ec" class="outline-5">
|
||||
<h5 id="org66499ec"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-org909e610" class="outline-5">
|
||||
<h5 id="org909e610"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1161,8 +1174,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org007b2bd" class="outline-5">
|
||||
<h5 id="org007b2bd"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org14db991" class="outline-5">
|
||||
<h5 id="org14db991"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||
@ -1346,8 +1359,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org65198c4" class="outline-3">
|
||||
<h3 id="org65198c4"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-orgf749f0d" class="outline-3">
|
||||
<h3 id="orgf749f0d"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The following data is computed as described in the next sections:
|
||||
@ -1422,8 +1435,8 @@ The following data is computed as described in the next sections:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8d722f8" class="outline-4">
|
||||
<h4 id="org8d722f8"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-org5716464" class="outline-4">
|
||||
<h4 id="org5716464"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<p>
|
||||
When the basis set is completely entered, extra data structures may be
|
||||
@ -1437,8 +1450,8 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5e61af0" class="outline-4">
|
||||
<h4 id="org5e61af0"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-org57d8afa" class="outline-4">
|
||||
<h4 id="org57d8afa"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<p>
|
||||
For faster access, we provide extra arrays for the shell information as:
|
||||
@ -1468,8 +1481,8 @@ which is a matrix-vector product.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgef9402c" class="outline-4">
|
||||
<h4 id="orgef9402c"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-org2101e44" class="outline-4">
|
||||
<h4 id="org2101e44"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1482,7 +1495,7 @@ which is a matrix-vector product.
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of primitive
|
||||
basis functions evaluated at the current coordinates.
|
||||
See section <a href="#org6b09e61">3.2</a>.
|
||||
See section <a href="#org4e7b426">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1495,7 +1508,7 @@ See section <a href="#org6b09e61">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#orgfb6aacf">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#org9e5c357">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1509,7 +1522,7 @@ evaluated at the current coordinates. See section <a href="#orgfb6aacf">3.3</a>.
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of the atomic orbitals
|
||||
evaluated at the current coordinates.
|
||||
See section <a href="#orgcce224e">5</a>.
|
||||
See section <a href="#org10ac589">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1534,7 +1547,7 @@ Uses the given array to compute the VGL.
|
||||
|
||||
<p>
|
||||
Returns the array of values of the atomic orbitals evaluated at
|
||||
the current coordinates. See section <a href="#orgcce224e">5</a>.
|
||||
the current coordinates. See section <a href="#org10ac589">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1553,12 +1566,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf0df458" class="outline-2">
|
||||
<h2 id="orgf0df458"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-org58b24f1" class="outline-2">
|
||||
<h2 id="org58b24f1"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org031af02" class="outline-3">
|
||||
<h3 id="org031af02"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-org8bd8e35" class="outline-3">
|
||||
<h3 id="org8bd8e35"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
<code>qmckl_ao_gaussian_vgl</code> computes the values, gradients and
|
||||
@ -1729,10 +1742,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6b09e61" class="outline-3">
|
||||
<h3 id="org6b09e61"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-org4e7b426" class="outline-3">
|
||||
<h3 id="org4e7b426"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="org0352e02" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9e2dadf" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1891,10 +1904,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfb6aacf" class="outline-3">
|
||||
<h3 id="orgfb6aacf"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-org9e5c357" class="outline-3">
|
||||
<h3 id="org9e5c357"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="org448d548" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org355a97d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2146,8 +2159,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org03a2959" class="outline-2">
|
||||
<h2 id="org03a2959"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-org2eaadf2" class="outline-2">
|
||||
<h2 id="org2eaadf2"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
Going from the atomic basis set to AOs implies a systematic
|
||||
@ -2167,8 +2180,8 @@ f & : & f_{xxx}, f_{xxy}, f_{xxz}, f_{xyy}, f_{xyz}, f_{xzz}, f_{yyy}, f_{yyz},
|
||||
\end{eqnarray}
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org79353b5" class="outline-3">
|
||||
<h3 id="org79353b5"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-orgf14794a" class="outline-3">
|
||||
<h3 id="orgf14794a"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
The <code>qmckl_ao_power</code> function computes all the powers of the <code>n</code>
|
||||
@ -2180,7 +2193,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="org5f4e1ab" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org998ffed" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2318,8 +2331,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1362a84" class="outline-3">
|
||||
<h3 id="org1362a84"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-orge511939" class="outline-3">
|
||||
<h3 id="orge511939"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div class="outline-text-3" id="text-4-2">
|
||||
<p>
|
||||
A polynomial is centered on a nucleus \(\mathbf{R}_i\)
|
||||
@ -2364,7 +2377,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="org99290fe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8c9a5b7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3143,18 +3156,18 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcce224e" class="outline-2">
|
||||
<h2 id="orgcce224e"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-org10ac589" class="outline-2">
|
||||
<h2 id="org10ac589"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-org6ff649f" class="outline-3">
|
||||
<h3 id="org6ff649f"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div id="outline-container-orga2ab5f1" class="outline-3">
|
||||
<h3 id="orga2ab5f1"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
</div>
|
||||
<div id="outline-container-org1d76168" class="outline-4">
|
||||
<h4 id="org1d76168"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org73b327b" class="outline-4">
|
||||
<h4 id="org73b327b"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<table id="org95aeeae" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga7b4d5d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3390,10 +3403,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfa64fdc" class="outline-4">
|
||||
<h4 id="orgfa64fdc"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div id="outline-container-org5101ab2" class="outline-4">
|
||||
<h4 id="org5101ab2"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="org6568060" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org363e9e0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3551,8 +3564,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2f2be96" class="outline-4">
|
||||
<h4 id="org2f2be96"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org573d5ec" class="outline-4">
|
||||
<h4 id="org573d5ec"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div class="outline-text-4" id="text-5-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_compute_ao_value_doc</span> (
|
||||
@ -3601,14 +3614,14 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd1e1b66" class="outline-3">
|
||||
<h3 id="orgd1e1b66"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-orgbe4b2ed" class="outline-3">
|
||||
<h3 id="orgbe4b2ed"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-5-2">
|
||||
</div>
|
||||
<div id="outline-container-org2a2b904" class="outline-4">
|
||||
<h4 id="org2a2b904"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-orgf11741b" class="outline-4">
|
||||
<h4 id="orgf11741b"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="org4a39696" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgaf6bb96" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3873,10 +3886,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8021602" class="outline-4">
|
||||
<h4 id="org8021602"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-org1945ad7" class="outline-4">
|
||||
<h4 id="org1945ad7"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="org984dcc7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgcabbc92" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4035,8 +4048,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org587fc8a" class="outline-4">
|
||||
<h4 id="org587fc8a"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-orgada78df" class="outline-4">
|
||||
<h4 id="orgada78df"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div class="outline-text-4" id="text-5-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_compute_ao_vgl_doc</span> (
|
||||
@ -4088,7 +4101,7 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:27</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
191
qmckl_blas.html
191
qmckl_blas.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>BLAS functions</title>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -333,54 +346,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org36f08c2">-</a></li>
|
||||
<li><a href="#orgd65de82">1. Data types</a>
|
||||
<li><a href="#orge962e08">-</a></li>
|
||||
<li><a href="#org58f1086">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#orgf6a111f">1.1. Vector</a></li>
|
||||
<li><a href="#org0a02ee8">1.2. Matrix</a></li>
|
||||
<li><a href="#org7b92c0f">1.3. Tensor</a></li>
|
||||
<li><a href="#org160bd6c">1.4. Reshaping</a>
|
||||
<li><a href="#orgd8dae86">1.1. Vector</a></li>
|
||||
<li><a href="#org7dba84c">1.2. Matrix</a></li>
|
||||
<li><a href="#org1cb77e6">1.3. Tensor</a></li>
|
||||
<li><a href="#org81d256b">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#org0438bd1">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orge8618f7">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org9986f5a">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org3ed9b7c">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#orgf77053a">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#orgd4e9a30">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#orgf2cb815">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#org843ff98">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org14fefab">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#orgbba85e3">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org8b22e24">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org6a28e3d">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org96a9587">1.5. Access macros</a></li>
|
||||
<li><a href="#org648eb5b">1.6. Set all elements</a>
|
||||
<li><a href="#org946a2e5">1.5. Access macros</a></li>
|
||||
<li><a href="#orgd0983fc">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#orgdae56d2">1.6.1. Vector</a></li>
|
||||
<li><a href="#org4d99312">1.6.2. Matrix</a></li>
|
||||
<li><a href="#orgc79ee9a">1.6.3. Tensor</a></li>
|
||||
<li><a href="#org488b912">1.6.1. Vector</a></li>
|
||||
<li><a href="#org7f6180d">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org827da9d">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4e1461e">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#org6fefdf7">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org281951c">2. Matrix operations</a>
|
||||
<li><a href="#org9b50b6d">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#orge298bcd">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org3c64ed8">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org3f45c5a">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#orgf6f7c45">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#orga7474d2">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<li><a href="#org3f3b9b0">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org0414859">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org1a06f83">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org6ad52ea">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#orgc0f08da">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<ul>
|
||||
<li><a href="#org9dd147d">2.5.1. C interface</a></li>
|
||||
<li><a href="#orge438da7">2.5.1. C interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6a8475a">2.6. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#org8d244a0">2.6. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org36f08c2" class="outline-2">
|
||||
<h2 id="org36f08c2">-</h2>
|
||||
<div class="outline-text-2" id="text-org36f08c2">
|
||||
<div id="outline-container-orge962e08" class="outline-2">
|
||||
<h2 id="orge962e08">-</h2>
|
||||
<div class="outline-text-2" id="text-orge962e08">
|
||||
<p>
|
||||
Basic linear algebra data types and operations are described in this file.
|
||||
The data types are private, so that HPC implementations can use
|
||||
@ -394,12 +407,12 @@ are not intended to be passed to external codes.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd65de82" class="outline-2">
|
||||
<h2 id="orgd65de82"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-org58f1086" class="outline-2">
|
||||
<h2 id="org58f1086"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orgf6a111f" class="outline-3">
|
||||
<h3 id="orgf6a111f"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-orgd8dae86" class="outline-3">
|
||||
<h3 id="orgd8dae86"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -453,8 +466,8 @@ Allocates a new vector. If the allocation failed the size is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a02ee8" class="outline-3">
|
||||
<h3 id="org0a02ee8"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-org7dba84c" class="outline-3">
|
||||
<h3 id="org7dba84c"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -514,8 +527,8 @@ Allocates a new matrix. If the allocation failed the sizes are zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b92c0f" class="outline-3">
|
||||
<h3 id="org7b92c0f"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-org1cb77e6" class="outline-3">
|
||||
<h3 id="org1cb77e6"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -582,16 +595,16 @@ is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org160bd6c" class="outline-3">
|
||||
<h3 id="org160bd6c"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-org81d256b" class="outline-3">
|
||||
<h3 id="org81d256b"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Reshaping occurs in-place and the pointer to the data is copied.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0438bd1" class="outline-4">
|
||||
<h4 id="org0438bd1"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-orgf2cb815" class="outline-4">
|
||||
<h4 id="orgf2cb815"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -607,8 +620,8 @@ Reshapes a vector into a matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge8618f7" class="outline-4">
|
||||
<h4 id="orge8618f7"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-org843ff98" class="outline-4">
|
||||
<h4 id="org843ff98"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -624,8 +637,8 @@ Reshapes a vector into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9986f5a" class="outline-4">
|
||||
<h4 id="org9986f5a"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-org14fefab" class="outline-4">
|
||||
<h4 id="org14fefab"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -639,8 +652,8 @@ Reshapes a matrix into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3ed9b7c" class="outline-4">
|
||||
<h4 id="org3ed9b7c"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-orgbba85e3" class="outline-4">
|
||||
<h4 id="orgbba85e3"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-4-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -656,8 +669,8 @@ Reshapes a matrix into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf77053a" class="outline-4">
|
||||
<h4 id="orgf77053a"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-org8b22e24" class="outline-4">
|
||||
<h4 id="org8b22e24"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-4-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -671,8 +684,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd4e9a30" class="outline-4">
|
||||
<h4 id="orgd4e9a30"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-org6a28e3d" class="outline-4">
|
||||
<h4 id="org6a28e3d"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-4-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -689,8 +702,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org96a9587" class="outline-3">
|
||||
<h3 id="org96a9587"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-org946a2e5" class="outline-3">
|
||||
<h3 id="org946a2e5"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
Macros are provided to ease the access to vectors, matrices and
|
||||
@ -714,12 +727,12 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org648eb5b" class="outline-3">
|
||||
<h3 id="org648eb5b"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-orgd0983fc" class="outline-3">
|
||||
<h3 id="orgd0983fc"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div class="outline-text-3" id="text-1-6">
|
||||
</div>
|
||||
<div id="outline-container-orgdae56d2" class="outline-4">
|
||||
<h4 id="orgdae56d2"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-org488b912" class="outline-4">
|
||||
<h4 id="org488b912"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-6-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -729,8 +742,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4d99312" class="outline-4">
|
||||
<h4 id="org4d99312"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-org7f6180d" class="outline-4">
|
||||
<h4 id="org7f6180d"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-6-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -740,8 +753,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc79ee9a" class="outline-4">
|
||||
<h4 id="orgc79ee9a"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-org827da9d" class="outline-4">
|
||||
<h4 id="org827da9d"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-6-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -752,8 +765,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4e1461e" class="outline-3">
|
||||
<h3 id="org4e1461e"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-org6fefdf7" class="outline-3">
|
||||
<h3 id="org6fefdf7"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div class="outline-text-3" id="text-1-7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -836,12 +849,12 @@ Converts a <code>double*</code> to a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org281951c" class="outline-2">
|
||||
<h2 id="org281951c"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-org9b50b6d" class="outline-2">
|
||||
<h2 id="org9b50b6d"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orge298bcd" class="outline-3">
|
||||
<h3 id="orge298bcd"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-org3f3b9b0" class="outline-3">
|
||||
<h3 id="org3f3b9b0"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
Matrix multiplication with a BLAS interface:
|
||||
@ -853,7 +866,7 @@ Matrix multiplication with a BLAS interface:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orgf3f367c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3e32d5e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1012,8 +1025,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3c64ed8" class="outline-3">
|
||||
<h3 id="org3c64ed8"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div id="outline-container-org0414859" class="outline-3">
|
||||
<h3 id="org0414859"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
"Size-safe" proxy function with the same functionality as <code>qmckl_dgemm</code>
|
||||
@ -1022,7 +1035,7 @@ are required primarily for the Python API, where compatibility with
|
||||
NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||
</p>
|
||||
|
||||
<table id="org02967bc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org25f4b25" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1208,8 +1221,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3f45c5a" class="outline-3">
|
||||
<h3 id="org3f45c5a"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-org1a06f83" class="outline-3">
|
||||
<h3 id="org1a06f83"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
@ -1221,7 +1234,7 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orgfa303b0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7d7bb52" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1315,8 +1328,8 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf6f7c45" class="outline-3">
|
||||
<h3 id="orgf6f7c45"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-org6ad52ea" class="outline-3">
|
||||
<h3 id="org6ad52ea"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
Given a matrix \(\mathbf{A}\), the adjugate matrix
|
||||
@ -1334,7 +1347,7 @@ of \(\mathbf{A}\).
|
||||
See also: <a href="https://en.wikipedia.org/wiki/Adjugate_matrix">https://en.wikipedia.org/wiki/Adjugate_matrix</a>
|
||||
</p>
|
||||
|
||||
<table id="org68e9b2d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd7e165c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1530,8 +1543,8 @@ determinant with the inverse:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga7474d2" class="outline-3">
|
||||
<h3 id="orga7474d2"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div id="outline-container-orgc0f08da" class="outline-3">
|
||||
<h3 id="orgc0f08da"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
"Size-safe" proxy function with the same functionality as <code>qmckl_adjugate</code>
|
||||
@ -1541,7 +1554,7 @@ NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||
</p>
|
||||
|
||||
|
||||
<table id="orgeeeed75" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc54d160" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1663,13 +1676,13 @@ LAPACK library.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9dd147d" class="outline-4">
|
||||
<h4 id="org9dd147d"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
<div id="outline-container-orge438da7" class="outline-4">
|
||||
<h4 id="orge438da7"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6a8475a" class="outline-3">
|
||||
<h3 id="org6a8475a"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org8d244a0" class="outline-3">
|
||||
<h3 id="org8d244a0"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
@ -1732,7 +1745,7 @@ Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Context</title>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -311,21 +324,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org7196b40">1. Context handling</a>
|
||||
<li><a href="#orgcb5cfb3">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#org874864e">1.1. Data structure</a></li>
|
||||
<li><a href="#org88d296c">1.2. Creation</a></li>
|
||||
<li><a href="#org6715cca">1.3. Locking</a></li>
|
||||
<li><a href="#orgb3642f4">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org929a4bd">1.5. Destroy</a></li>
|
||||
<li><a href="#orgecad597">1.1. Data structure</a></li>
|
||||
<li><a href="#orgc40edb2">1.2. Creation</a></li>
|
||||
<li><a href="#org41154af">1.3. Locking</a></li>
|
||||
<li><a href="#orgf78cd45">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org9bfd6c3">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7196b40" class="outline-2">
|
||||
<h2 id="org7196b40"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-orgcb5cfb3" class="outline-2">
|
||||
<h2 id="orgcb5cfb3"><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 +351,7 @@ A value of <code>QMCKL_NULL_CONTEXT</code> for the context is equivalent to a
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org1e40ead"><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="orgf2abe13"><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 +369,8 @@ and <code>ctx</code> is a <code>qmckl_context_struct*</code> pointer.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org874864e" class="outline-3">
|
||||
<h3 id="org874864e"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgecad597" class="outline-3">
|
||||
<h3 id="orgecad597"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
A tag is used internally to check if the memory domain pointed
|
||||
@ -385,7 +398,7 @@ to be recomputed. The date is incremented when the context is touched.
|
||||
|
||||
<p>
|
||||
When a new element is added to the context, the functions
|
||||
<a href="#org88d296c"><code>qmckl_context_create</code></a> <a href="#org929a4bd"><code>qmckl_context_destroy</code></a> and <a href="#orgb3642f4"><code>qmckl_context_copy</code></a>
|
||||
<a href="#orgc40edb2"><code>qmckl_context_create</code></a> <a href="#org9bfd6c3"><code>qmckl_context_destroy</code></a> and <a href="#orgf78cd45"><code>qmckl_context_copy</code></a>
|
||||
should be updated in order to make deep copies.
|
||||
</p>
|
||||
|
||||
@ -406,8 +419,8 @@ This has the effect to increment the date of the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org88d296c" class="outline-3">
|
||||
<h3 id="org88d296c"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-orgc40edb2" class="outline-3">
|
||||
<h3 id="orgc40edb2"><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.
|
||||
@ -424,8 +437,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org6715cca" class="outline-3">
|
||||
<h3 id="org6715cca"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-org41154af" class="outline-3">
|
||||
<h3 id="org41154af"><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
|
||||
@ -441,8 +454,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgb3642f4" class="outline-3">
|
||||
<h3 id="orgb3642f4"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-orgf78cd45" class="outline-3">
|
||||
<h3 id="orgf78cd45"><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
|
||||
@ -450,8 +463,8 @@ number of times the thread has locked it is saved in the
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org929a4bd" class="outline-3">
|
||||
<h3 id="org929a4bd"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org9bfd6c3" class="outline-3">
|
||||
<h3 id="org9bfd6c3"><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.
|
||||
@ -469,7 +482,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: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Slater Determinant</title>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -311,32 +324,32 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org0fb913e">1. Context</a>
|
||||
<li><a href="#org53340d6">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org04a8c47">1.1. Data structure</a></li>
|
||||
<li><a href="#org0a08b4c">1.2. Access functions</a></li>
|
||||
<li><a href="#org0e93916">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org392978a">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org5918d09">1.5. Test</a></li>
|
||||
<li><a href="#orgc37ca86">1.1. Data structure</a></li>
|
||||
<li><a href="#orgf92112a">1.2. Access functions</a></li>
|
||||
<li><a href="#org3c1ac07">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org42aed70">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org8577b93">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd356032">2. Computation</a>
|
||||
<li><a href="#org1448002">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org6c3848d">2.1. Determinant matrix</a>
|
||||
<li><a href="#orgc2d9466">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org0afaa4f">2.1.1. Get</a></li>
|
||||
<li><a href="#org83d7459">2.1.2. Provide</a></li>
|
||||
<li><a href="#org50ee4d3">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org2d6139c">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orgc0bc611">2.1.5. Test</a></li>
|
||||
<li><a href="#org0cdda86">2.1.1. Get</a></li>
|
||||
<li><a href="#org0bb5d8d">2.1.2. Provide</a></li>
|
||||
<li><a href="#org9327a7d">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org5985b3b">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orgd30ff37">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc4f455e">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#org8f03aa0">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#orgcda751b">2.2.1. Get</a></li>
|
||||
<li><a href="#orgc38493b">2.2.2. Provide</a></li>
|
||||
<li><a href="#org7bca945">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org21dd948">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#org0752876">2.2.1. Get</a></li>
|
||||
<li><a href="#org8dec6f7">2.2.2. Provide</a></li>
|
||||
<li><a href="#org6be4a69">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org83d0445">2.2.4. Compute beta</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -345,8 +358,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0fb913e" class="outline-2">
|
||||
<h2 id="org0fb913e"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org53340d6" class="outline-2">
|
||||
<h2 id="org53340d6"><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:
|
||||
@ -522,8 +535,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04a8c47" class="outline-3">
|
||||
<h3 id="org04a8c47"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgc37ca86" class="outline-3">
|
||||
<h3 id="orgc37ca86"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_determinant_struct</span> {
|
||||
@ -591,8 +604,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a08b4c" class="outline-3">
|
||||
<h3 id="org0a08b4c"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgf92112a" class="outline-3">
|
||||
<h3 id="orgf92112a"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data for the slater determinants have been provided, the following
|
||||
@ -606,8 +619,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0e93916" class="outline-3">
|
||||
<h3 id="org0e93916"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org3c1ac07" class="outline-3">
|
||||
<h3 id="org3c1ac07"><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
|
||||
@ -630,24 +643,24 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org392978a" class="outline-3">
|
||||
<h3 id="org392978a"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-org42aed70" class="outline-3">
|
||||
<h3 id="org42aed70"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-org5918d09" class="outline-3">
|
||||
<h3 id="org5918d09"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-org8577b93" class="outline-3">
|
||||
<h3 id="org8577b93"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgd356032" class="outline-2">
|
||||
<h2 id="orgd356032"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org1448002" class="outline-2">
|
||||
<h2 id="org1448002"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org6c3848d" class="outline-3">
|
||||
<h3 id="org6c3848d"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-orgc2d9466" class="outline-3">
|
||||
<h3 id="orgc2d9466"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0afaa4f" class="outline-4">
|
||||
<h4 id="org0afaa4f"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org0cdda86" class="outline-4">
|
||||
<h4 id="org0cdda86"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_det_vgl_alpha</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">det_vgl_alpha</span>);
|
||||
@ -657,14 +670,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org83d7459" class="outline-4">
|
||||
<h4 id="org83d7459"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org0bb5d8d" class="outline-4">
|
||||
<h4 id="org0bb5d8d"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org50ee4d3" class="outline-4">
|
||||
<h4 id="org50ee4d3"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org9327a7d" class="outline-4">
|
||||
<h4 id="org9327a7d"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org285002e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4f4986f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -838,10 +851,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d6139c" class="outline-4">
|
||||
<h4 id="org2d6139c"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org5985b3b" class="outline-4">
|
||||
<h4 id="org5985b3b"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="orgf5e9d7f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge5751f4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1015,18 +1028,18 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc0bc611" class="outline-4">
|
||||
<h4 id="orgc0bc611"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-orgd30ff37" class="outline-4">
|
||||
<h4 id="orgd30ff37"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc4f455e" class="outline-3">
|
||||
<h3 id="orgc4f455e"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-org8f03aa0" class="outline-3">
|
||||
<h3 id="org8f03aa0"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcda751b" class="outline-4">
|
||||
<h4 id="orgcda751b"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org0752876" class="outline-4">
|
||||
<h4 id="org0752876"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_det_inv_matrix_alpha</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">det_inv_matrix_alpha</span>);
|
||||
@ -1040,14 +1053,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc38493b" class="outline-4">
|
||||
<h4 id="orgc38493b"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org8dec6f7" class="outline-4">
|
||||
<h4 id="org8dec6f7"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7bca945" class="outline-4">
|
||||
<h4 id="org7bca945"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org6be4a69" class="outline-4">
|
||||
<h4 id="org6be4a69"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org4416c06" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga25e043" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1209,10 +1222,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org21dd948" class="outline-4">
|
||||
<h4 id="org21dd948"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org83d0445" class="outline-4">
|
||||
<h4 id="org83d0445"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="org6fef6fa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org64b443b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1379,7 +1392,7 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<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>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -333,54 +346,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgfcf5c6b">1. Squared distance</a>
|
||||
<li><a href="#orgb3c8bce">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org679c4d0">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#orga08b913">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#orge8a5b9b">1.1.1. Performance</a></li>
|
||||
<li><a href="#org7bb8faa">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb55291d">2. Distance</a>
|
||||
<li><a href="#org700ac6e">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#orga0173b2">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#orgfd5a894">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org6507af6">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orga8a1c69">2.1.2. C header</a></li>
|
||||
<li><a href="#orgd9b5ba4">2.1.3. Source</a></li>
|
||||
<li><a href="#org727e786">2.1.4. Performance</a></li>
|
||||
<li><a href="#org8e3594b">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org7b38fcd">2.1.2. C header</a></li>
|
||||
<li><a href="#org0899471">2.1.3. Source</a></li>
|
||||
<li><a href="#org6e150af">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org67d6af5">3. Rescaled Distance</a>
|
||||
<li><a href="#org5582fcb">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org653d8fe">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#org5590e70">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org34289b5">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org776dabc">3.1.2. C header</a></li>
|
||||
<li><a href="#orgf8dd1d5">3.1.3. Source</a></li>
|
||||
<li><a href="#org10a7f37">3.1.4. Performance</a></li>
|
||||
<li><a href="#org568c898">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orga86bf26">3.1.2. C header</a></li>
|
||||
<li><a href="#org03f4e62">3.1.3. Source</a></li>
|
||||
<li><a href="#org38953eb">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga1ad34d">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#orgc46d12c">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#orga408562">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
<li><a href="#org1a62ce4">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfcf5c6b" class="outline-2">
|
||||
<h2 id="orgfcf5c6b"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-orgb3c8bce" class="outline-2">
|
||||
<h2 id="orgb3c8bce"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org679c4d0" class="outline-3">
|
||||
<h3 id="org679c4d0"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-orga08b913" class="outline-3">
|
||||
<h3 id="orga08b913"><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
|
||||
@ -393,7 +406,7 @@ between all pairs of points in two sets, one point within each set:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org1281801" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org35caeee" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -659,8 +672,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge8a5b9b" class="outline-4">
|
||||
<h4 id="orge8a5b9b"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-org7bb8faa" class="outline-4">
|
||||
<h4 id="org7bb8faa"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are
|
||||
@ -670,12 +683,12 @@ transposed.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgb55291d" class="outline-2">
|
||||
<h2 id="orgb55291d"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-org700ac6e" class="outline-2">
|
||||
<h2 id="org700ac6e"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orga0173b2" class="outline-3">
|
||||
<h3 id="orga0173b2"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-orgfd5a894" class="outline-3">
|
||||
<h3 id="orgfd5a894"><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
|
||||
@ -693,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="org1d35e58" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc6ae5a9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -794,8 +807,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6507af6" class="outline-4">
|
||||
<h4 id="org6507af6"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org8e3594b" class="outline-4">
|
||||
<h4 id="org8e3594b"><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>
|
||||
@ -813,8 +826,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga8a1c69" class="outline-4">
|
||||
<h4 id="orga8a1c69"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org7b38fcd" class="outline-4">
|
||||
<h4 id="org7b38fcd"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance</span> (
|
||||
@ -834,8 +847,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd9b5ba4" class="outline-4">
|
||||
<h4 id="orgd9b5ba4"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-org0899471" class="outline-4">
|
||||
<h4 id="org0899471"><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>
|
||||
@ -1002,8 +1015,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org727e786" class="outline-4">
|
||||
<h4 id="org727e786"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org6e150af" class="outline-4">
|
||||
<h4 id="org6e150af"><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.
|
||||
@ -1013,12 +1026,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org67d6af5" class="outline-2">
|
||||
<h2 id="org67d6af5"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org5582fcb" class="outline-2">
|
||||
<h2 id="org5582fcb"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org653d8fe" class="outline-3">
|
||||
<h3 id="org653d8fe"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-org5590e70" class="outline-3">
|
||||
<h3 id="org5590e70"><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
|
||||
@ -1036,7 +1049,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="org07ff5e6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org09cd591" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1144,8 +1157,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org34289b5" class="outline-4">
|
||||
<h4 id="org34289b5"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org568c898" class="outline-4">
|
||||
<h4 id="org568c898"><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>
|
||||
@ -1163,8 +1176,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org776dabc" class="outline-4">
|
||||
<h4 id="org776dabc"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-orga86bf26" class="outline-4">
|
||||
<h4 id="orga86bf26"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled</span> (
|
||||
@ -1185,8 +1198,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf8dd1d5" class="outline-4">
|
||||
<h4 id="orgf8dd1d5"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-org03f4e62" class="outline-4">
|
||||
<h4 id="org03f4e62"><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>
|
||||
@ -1356,8 +1369,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org10a7f37" class="outline-4">
|
||||
<h4 id="org10a7f37"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org38953eb" class="outline-4">
|
||||
<h4 id="org38953eb"><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.
|
||||
@ -1366,12 +1379,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orga1ad34d" class="outline-2">
|
||||
<h2 id="orga1ad34d"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-orgc46d12c" class="outline-2">
|
||||
<h2 id="orgc46d12c"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orga408562" class="outline-3">
|
||||
<h3 id="orga408562"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div id="outline-container-org1a62ce4" class="outline-3">
|
||||
<h3 id="org1a62ce4"><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
|
||||
@ -1438,7 +1451,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="org5d674b2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org721b42d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1776,7 +1789,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: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Electrons</title>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -333,59 +346,59 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgce5fbc6">1. Context</a>
|
||||
<li><a href="#orgdf33d91">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org4d05c75">1.1. Data structure</a></li>
|
||||
<li><a href="#org7b4b58e">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org6018393">1.3. Access functions</a>
|
||||
<li><a href="#orge83bc79">1.1. Data structure</a></li>
|
||||
<li><a href="#orgf92d9fe">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orgb6952ef">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org582dc8e">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#orgd13bee3">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#org2c49047">1.3.3. Electron coordinates</a></li>
|
||||
<li><a href="#org03da321">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#org89be9c6">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#org323d5b0">1.3.3. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org66c2935">1.4. Test</a></li>
|
||||
<li><a href="#orged6096d">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgecdc31d">2. Computation</a>
|
||||
<li><a href="#orgf70c237">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgc416adb">2.1. Electron-electron distances</a>
|
||||
<li><a href="#org4cea2b6">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgc670246">2.1.1. Get</a></li>
|
||||
<li><a href="#orgcc169bf">2.1.2. Compute</a></li>
|
||||
<li><a href="#orge312541">2.1.3. Test</a></li>
|
||||
<li><a href="#org1101420">2.1.1. Get</a></li>
|
||||
<li><a href="#orgdd5ff7e">2.1.2. Compute</a></li>
|
||||
<li><a href="#org59e92a4">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga4873e5">2.2. Electron-electron potential</a>
|
||||
<li><a href="#org51c4cec">2.2. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#orgb77f075">2.2.1. Get</a></li>
|
||||
<li><a href="#org7b7f4cd">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgfec87fc">2.2.3. Test</a></li>
|
||||
<li><a href="#org1d0c2c2">2.2.1. Get</a></li>
|
||||
<li><a href="#org0479fe3">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgac07609">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7c01aa2">2.3. Electron-nucleus distances</a>
|
||||
<li><a href="#orgbe92c71">2.3. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org8f82895">2.3.1. Get</a></li>
|
||||
<li><a href="#orge526149">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgd7e9135">2.3.3. Test</a></li>
|
||||
<li><a href="#orgcfe21f8">2.3.1. Get</a></li>
|
||||
<li><a href="#org3296d6f">2.3.2. Compute</a></li>
|
||||
<li><a href="#org8c20df1">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org611340f">2.4. Electron-nucleus potential</a>
|
||||
<li><a href="#org9c6d94c">2.4. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#org813ff84">2.4.1. Get</a></li>
|
||||
<li><a href="#orga93d954">2.4.2. Compute</a></li>
|
||||
<li><a href="#orgf267621">2.4.3. Test</a></li>
|
||||
<li><a href="#orgbbc1238">2.4.1. Get</a></li>
|
||||
<li><a href="#org0934896">2.4.2. Compute</a></li>
|
||||
<li><a href="#org4433db8">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1e34af4">2.5. Generate initial coordinates</a></li>
|
||||
<li><a href="#orgfc381b1">2.5. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgce5fbc6" class="outline-2">
|
||||
<h2 id="orgce5fbc6"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgdf33d91" class="outline-2">
|
||||
<h2 id="orgdf33d91"><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:
|
||||
@ -526,8 +539,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4d05c75" class="outline-3">
|
||||
<h3 id="org4d05c75"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orge83bc79" class="outline-3">
|
||||
<h3 id="orge83bc79"><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">
|
||||
@ -596,8 +609,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b4b58e" class="outline-3">
|
||||
<h3 id="org7b4b58e"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgf92d9fe" class="outline-3">
|
||||
<h3 id="orgf92d9fe"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To set the data relative to the electrons in the context, the
|
||||
@ -670,8 +683,8 @@ in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6018393" class="outline-3">
|
||||
<h3 id="org6018393"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-orgb6952ef" class="outline-3">
|
||||
<h3 id="orgb6952ef"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||
@ -683,12 +696,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org582dc8e" class="outline-4">
|
||||
<h4 id="org582dc8e"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-org03da321" class="outline-4">
|
||||
<h4 id="org03da321"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd13bee3" class="outline-4">
|
||||
<h4 id="orgd13bee3"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-org89be9c6" class="outline-4">
|
||||
<h4 id="org89be9c6"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div class="outline-text-4" id="text-1-3-2">
|
||||
<p>
|
||||
A walker is a set of electron coordinates that are arguments of
|
||||
@ -697,8 +710,8 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c49047" class="outline-4">
|
||||
<h4 id="org2c49047"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div id="outline-container-org323d5b0" class="outline-4">
|
||||
<h4 id="org323d5b0"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-3-3">
|
||||
<p>
|
||||
Returns the current electron coordinates. The pointer is assumed
|
||||
@ -748,11 +761,11 @@ current points.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org66c2935" class="outline-3">
|
||||
<h3 id="org66c2935"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orged6096d" class="outline-3">
|
||||
<h3 id="orged6096d"><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>*/
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">walk_num</span> = chbrclf_walk_num;
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">elec_num</span> = chbrclf_elec_num;
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">elec_up_num</span> = chbrclf_elec_up_num;
|
||||
@ -764,7 +777,7 @@ current points.
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a0522d;">elec_coord</span> = &(chbrclf_elec_coord[0][0][0]);
|
||||
|
||||
|
||||
/* <span style="color: #b22222;">--- </span>*/
|
||||
/* <span style="color: #b22222;">---</span> */
|
||||
|
||||
<span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">rc</span>;
|
||||
|
||||
@ -828,8 +841,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgecdc31d" class="outline-2">
|
||||
<h2 id="orgecdc31d"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgf70c237" class="outline-2">
|
||||
<h2 id="orgf70c237"><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
|
||||
@ -842,12 +855,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc416adb" class="outline-3">
|
||||
<h3 id="orgc416adb"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-org4cea2b6" class="outline-3">
|
||||
<h3 id="org4cea2b6"><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-orgc670246" class="outline-4">
|
||||
<h4 id="orgc670246"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org1101420" class="outline-4">
|
||||
<h4 id="org1101420"><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>);
|
||||
@ -856,10 +869,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcc169bf" class="outline-4">
|
||||
<h4 id="orgcc169bf"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orgdd5ff7e" class="outline-4">
|
||||
<h4 id="orgdd5ff7e"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgf59e712" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org404d9f5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -964,8 +977,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge312541" class="outline-4">
|
||||
<h4 id="orge312541"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org59e92a4" class="outline-4">
|
||||
<h4 id="org59e92a4"><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>));
|
||||
@ -999,8 +1012,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga4873e5" class="outline-3">
|
||||
<h3 id="orga4873e5"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-org51c4cec" class="outline-3">
|
||||
<h3 id="org51c4cec"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
<code>ee_potential</code> is given by
|
||||
@ -1018,8 +1031,8 @@ distance.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb77f075" class="outline-4">
|
||||
<h4 id="orgb77f075"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org1d0c2c2" class="outline-4">
|
||||
<h4 id="org1d0c2c2"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_potential</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">ee_potential</span>);
|
||||
@ -1028,10 +1041,10 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b7f4cd" class="outline-4">
|
||||
<h4 id="org7b7f4cd"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org0479fe3" class="outline-4">
|
||||
<h4 id="org0479fe3"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org3c9268c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0c2d9d6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1147,8 +1160,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfec87fc" class="outline-4">
|
||||
<h4 id="orgfec87fc"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgac07609" class="outline-4">
|
||||
<h4 id="orgac07609"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #a0522d;">ee_potential</span>[walk_num];
|
||||
@ -1160,12 +1173,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7c01aa2" class="outline-3">
|
||||
<h3 id="org7c01aa2"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-orgbe92c71" class="outline-3">
|
||||
<h3 id="orgbe92c71"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
</div>
|
||||
<div id="outline-container-org8f82895" class="outline-4">
|
||||
<h4 id="org8f82895"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-orgcfe21f8" class="outline-4">
|
||||
<h4 id="orgcfe21f8"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance</span>);
|
||||
@ -1174,10 +1187,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge526149" class="outline-4">
|
||||
<h4 id="orge526149"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org3296d6f" class="outline-4">
|
||||
<h4 id="org3296d6f"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org5024d33" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org79c70df" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1302,8 +1315,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd7e9135" class="outline-4">
|
||||
<h4 id="orgd7e9135"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org8c20df1" class="outline-4">
|
||||
<h4 id="org8c20df1"><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">
|
||||
@ -1351,8 +1364,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org611340f" class="outline-3">
|
||||
<h3 id="org611340f"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-org9c6d94c" class="outline-3">
|
||||
<h3 id="org9c6d94c"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
<code>en_potential</code> stores the <code>en</code> potential energy
|
||||
@ -1370,8 +1383,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org813ff84" class="outline-4">
|
||||
<h4 id="org813ff84"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgbbc1238" class="outline-4">
|
||||
<h4 id="orgbbc1238"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_potential</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">en_potential</span>);
|
||||
@ -1380,10 +1393,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga93d954" class="outline-4">
|
||||
<h4 id="orga93d954"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-org0934896" class="outline-4">
|
||||
<h4 id="org0934896"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org506adb1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org089cd02" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1517,8 +1530,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf267621" class="outline-4">
|
||||
<h4 id="orgf267621"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org4433db8" class="outline-4">
|
||||
<h4 id="org4433db8"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #a0522d;">en_potential</span>[walk_num];
|
||||
@ -1531,14 +1544,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1e34af4" class="outline-3">
|
||||
<h3 id="org1e34af4"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-orgfc381b1" class="outline-3">
|
||||
<h3 id="orgfc381b1"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<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>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -311,29 +324,29 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc3270d7">-</a></li>
|
||||
<li><a href="#org9a1adad">1. Decoding errors</a></li>
|
||||
<li><a href="#org0189fd4">2. Data structure in context</a></li>
|
||||
<li><a href="#org3f643ee">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org042163e">4. Get the error</a></li>
|
||||
<li><a href="#orga32900c">5. Failing</a></li>
|
||||
<li><a href="#org2b751de">6. Last error</a>
|
||||
<li><a href="#orgfeed296">-</a></li>
|
||||
<li><a href="#orgb2387b3">1. Decoding errors</a></li>
|
||||
<li><a href="#org6a12351">2. Data structure in context</a></li>
|
||||
<li><a href="#orgae2c11f">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgb5a6e89">4. Get the error</a></li>
|
||||
<li><a href="#org97d443f">5. Failing</a></li>
|
||||
<li><a href="#org404f518">6. Last error</a>
|
||||
<ul>
|
||||
<li><a href="#org0995826">6.1. Fortran inteface</a></li>
|
||||
<li><a href="#org5d7a33d">6.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org223cf42">7. Helper functions for debugging</a>
|
||||
<li><a href="#org85a8ffb">7. Helper functions for debugging</a>
|
||||
<ul>
|
||||
<li><a href="#org2f490ad">7.1. Fortran inteface</a></li>
|
||||
<li><a href="#org69a7335">7.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc3270d7" class="outline-2">
|
||||
<h2 id="orgc3270d7">-</h2>
|
||||
<div class="outline-text-2" id="text-orgc3270d7">
|
||||
<div id="outline-container-orgfeed296" class="outline-2">
|
||||
<h2 id="orgfeed296">-</h2>
|
||||
<div class="outline-text-2" id="text-orgfeed296">
|
||||
<p>
|
||||
The library should never make the calling programs abort, nor
|
||||
perform any input/output operations. This decision has to be taken
|
||||
@ -344,7 +357,7 @@ by the developer of the code calling the library.
|
||||
All the functions return with an exit code, defined as
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org6d6f311"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
<pre class="src src-c" id="orgb9f9437"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -361,7 +374,7 @@ error code is returned to the program.
|
||||
Here is the complete list of exit codes.
|
||||
</p>
|
||||
|
||||
<table id="org41fb57c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgcf2d6aa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -569,8 +582,8 @@ string is assumed to be large enough to contain the error message
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a1adad" class="outline-2">
|
||||
<h2 id="org9a1adad"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-orgb2387b3" class="outline-2">
|
||||
<h2 id="orgb2387b3"><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
|
||||
@ -588,8 +601,8 @@ The text strings are extracted from the previous table.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org0189fd4" class="outline-2">
|
||||
<h2 id="org0189fd4"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org6a12351" class="outline-2">
|
||||
<h2 id="org6a12351"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The strings are declared internally with a maximum fixed size to avoid
|
||||
@ -612,8 +625,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3f643ee" class="outline-2">
|
||||
<h2 id="org3f643ee"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-orgae2c11f" class="outline-2">
|
||||
<h2 id="orgae2c11f"><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>.
|
||||
@ -632,8 +645,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org042163e" class="outline-2">
|
||||
<h2 id="org042163e"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-orgb5a6e89" class="outline-2">
|
||||
<h2 id="orgb5a6e89"><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
|
||||
@ -652,8 +665,8 @@ function name and message is mandatory.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orga32900c" class="outline-2">
|
||||
<h2 id="orga32900c"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-org97d443f" class="outline-2">
|
||||
<h2 id="org97d443f"><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
|
||||
@ -690,8 +703,8 @@ For example, this function can be used as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b751de" class="outline-2">
|
||||
<h2 id="org2b751de"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div id="outline-container-org404f518" class="outline-2">
|
||||
<h2 id="org404f518"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div class="outline-text-2" id="text-6">
|
||||
<p>
|
||||
Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||
@ -703,13 +716,13 @@ Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org0995826" class="outline-3">
|
||||
<h3 id="org0995826"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org5d7a33d" class="outline-3">
|
||||
<h3 id="org5d7a33d"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org223cf42" class="outline-2">
|
||||
<h2 id="org223cf42"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div id="outline-container-org85a8ffb" class="outline-2">
|
||||
<h2 id="org85a8ffb"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div class="outline-text-2" id="text-7">
|
||||
<p>
|
||||
The following function prints to <code>stderr</code> an error message is the return code is
|
||||
@ -735,14 +748,14 @@ It should be used as:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2f490ad" class="outline-3">
|
||||
<h3 id="org2f490ad"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org69a7335" class="outline-3">
|
||||
<h3 id="org69a7335"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Code examples</title>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -333,27 +346,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orga848f64">1. Python</a>
|
||||
<li><a href="#orgcf487f0">1. Python</a>
|
||||
<ul>
|
||||
<li><a href="#org5e518ce">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
<li><a href="#orgf45c0de">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org55eb596">2. Fortran</a>
|
||||
<li><a href="#orgc3499f6">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#orgb9b9e85">2.1. Checking errors</a></li>
|
||||
<li><a href="#org77815ea">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#org0cd0e44">2.1. Checking errors</a></li>
|
||||
<li><a href="#org2eab8ff">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga848f64" class="outline-2">
|
||||
<h2 id="orga848f64"><span class="section-number-2">1</span> Python</h2>
|
||||
<div id="outline-container-orgcf487f0" class="outline-2">
|
||||
<h2 id="orgcf487f0"><span class="section-number-2">1</span> Python</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org5e518ce" class="outline-3">
|
||||
<h3 id="org5e518ce"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div id="outline-container-orgf45c0de" class="outline-3">
|
||||
<h3 id="orgf45c0de"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
In this example, we will compute numerically the overlap
|
||||
@ -529,12 +542,12 @@ and finally we compute the overlap between all the MOs as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org55eb596" class="outline-2">
|
||||
<h2 id="org55eb596"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-orgc3499f6" class="outline-2">
|
||||
<h2 id="orgc3499f6"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgb9b9e85" class="outline-3">
|
||||
<h3 id="orgb9b9e85"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-org0cd0e44" class="outline-3">
|
||||
<h3 id="org0cd0e44"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
All QMCkl functions return an error code. A convenient way to handle
|
||||
@ -543,7 +556,7 @@ error in text format and exits the program.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90" id="org7d1df79"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="orgd2c7fe8"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>
|
||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
||||
<span style="color: #228b22;">integer</span>(qmckl_exit_code), <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> rc</span>
|
||||
@ -561,8 +574,8 @@ error in text format and exits the program.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org77815ea" class="outline-3">
|
||||
<h3 id="org77815ea"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-org2eab8ff" class="outline-3">
|
||||
<h3 id="org2eab8ff"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The following program, in Fortran, computes the values of an atomic
|
||||
@ -781,7 +794,7 @@ We finally print the value and Laplacian of the AO:
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Local Energy</title>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -333,44 +346,44 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org7df34d1">1. Context</a>
|
||||
<li><a href="#org76f7964">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org0cd4069">1.1. Data structure</a></li>
|
||||
<li><a href="#org045ad8a">1.2. Access functions</a></li>
|
||||
<li><a href="#org8007d1f">1.1. Data structure</a></li>
|
||||
<li><a href="#orgee207d9">1.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8a0ec66">2. Computation</a>
|
||||
<li><a href="#org3869944">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org55b0b3b">2.1. Kinetic energy</a>
|
||||
<li><a href="#orgbbcf30c">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#org5cd2c16">2.1.1. Get</a></li>
|
||||
<li><a href="#orga4943a3">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgd386200">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org01a147d">2.1.4. Test</a></li>
|
||||
<li><a href="#org718d32a">2.1.1. Get</a></li>
|
||||
<li><a href="#org912c2af">2.1.2. Provide</a></li>
|
||||
<li><a href="#orge70f192">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#orgde28851">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org556cba9">2.2. Potential energy</a>
|
||||
<li><a href="#org269d105">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#org5d85b2b">2.2.1. Get</a></li>
|
||||
<li><a href="#orgc959469">2.2.2. Provide</a></li>
|
||||
<li><a href="#orge45246e">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org8b596cc">2.2.4. Test</a></li>
|
||||
<li><a href="#org73bf434">2.2.1. Get</a></li>
|
||||
<li><a href="#org8902162">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgf76e56c">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#orgeada197">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org05e95d7">2.3. Local energy</a>
|
||||
<li><a href="#org0cbecb5">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#org3ccbe73">2.3.1. Get</a></li>
|
||||
<li><a href="#org3983cd9">2.3.2. Provide</a></li>
|
||||
<li><a href="#org2c6a80d">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#orgc21ce1f">2.3.4. Test</a></li>
|
||||
<li><a href="#org1488b8c">2.3.1. Get</a></li>
|
||||
<li><a href="#orgb3d914a">2.3.2. Provide</a></li>
|
||||
<li><a href="#org23f7179">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#orgb8783a5">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7de8da0">2.4. Drift vector</a>
|
||||
<li><a href="#orgb28020c">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#orgadcb9bb">2.4.1. Get</a></li>
|
||||
<li><a href="#orgac329df">2.4.2. Provide</a></li>
|
||||
<li><a href="#orgc5ca11b">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#orgc37cc5b">2.4.4. Test</a></li>
|
||||
<li><a href="#org1c91ce3">2.4.1. Get</a></li>
|
||||
<li><a href="#org328f6c1">2.4.2. Provide</a></li>
|
||||
<li><a href="#orgfbcd913">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#orgab49098">2.4.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -379,8 +392,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7df34d1" class="outline-2">
|
||||
<h2 id="org7df34d1"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org76f7964" class="outline-2">
|
||||
<h2 id="org76f7964"><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:
|
||||
@ -453,8 +466,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0cd4069" class="outline-3">
|
||||
<h3 id="org0cd4069"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org8007d1f" class="outline-3">
|
||||
<h3 id="org8007d1f"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_local_energy_struct</span> {
|
||||
@ -488,8 +501,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org045ad8a" class="outline-3">
|
||||
<h3 id="org045ad8a"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgee207d9" class="outline-3">
|
||||
<h3 id="orgee207d9"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data for the local energy have been provided, the following
|
||||
@ -504,12 +517,12 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8a0ec66" class="outline-2">
|
||||
<h2 id="org8a0ec66"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org3869944" class="outline-2">
|
||||
<h2 id="org3869944"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org55b0b3b" class="outline-3">
|
||||
<h3 id="org55b0b3b"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-orgbbcf30c" class="outline-3">
|
||||
<h3 id="orgbbcf30c"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
Where the kinetic energy is given as:
|
||||
@ -533,8 +546,8 @@ case is given as follows:
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5cd2c16" class="outline-4">
|
||||
<h4 id="org5cd2c16"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org718d32a" class="outline-4">
|
||||
<h4 id="org718d32a"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_kinetic_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">kinetic_energy</span>);
|
||||
@ -543,14 +556,14 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga4943a3" class="outline-4">
|
||||
<h4 id="orga4943a3"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org912c2af" class="outline-4">
|
||||
<h4 id="org912c2af"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd386200" class="outline-4">
|
||||
<h4 id="orgd386200"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-orge70f192" class="outline-4">
|
||||
<h4 id="orge70f192"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org46ca496" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc9d97bb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -779,12 +792,12 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org01a147d" class="outline-4">
|
||||
<h4 id="org01a147d"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-orgde28851" class="outline-4">
|
||||
<h4 id="orgde28851"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org556cba9" class="outline-3">
|
||||
<h3 id="org556cba9"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-org269d105" class="outline-3">
|
||||
<h3 id="org269d105"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The potential energy is the sum of all the following terms
|
||||
@ -820,8 +833,8 @@ contributions.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5d85b2b" class="outline-4">
|
||||
<h4 id="org5d85b2b"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org73bf434" class="outline-4">
|
||||
<h4 id="org73bf434"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_potential_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">potential_energy</span>);
|
||||
@ -830,14 +843,14 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc959469" class="outline-4">
|
||||
<h4 id="orgc959469"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org8902162" class="outline-4">
|
||||
<h4 id="org8902162"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge45246e" class="outline-4">
|
||||
<h4 id="orge45246e"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-orgf76e56c" class="outline-4">
|
||||
<h4 id="orgf76e56c"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org51a0f78" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org70d75c0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -964,12 +977,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b596cc" class="outline-4">
|
||||
<h4 id="org8b596cc"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-orgeada197" class="outline-4">
|
||||
<h4 id="orgeada197"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org05e95d7" class="outline-3">
|
||||
<h3 id="org05e95d7"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-org0cbecb5" class="outline-3">
|
||||
<h3 id="org0cbecb5"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
The local energy is the sum of kinetic and potential energies.
|
||||
@ -983,8 +996,8 @@ E_L = KE + PE
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org3ccbe73" class="outline-4">
|
||||
<h4 id="org3ccbe73"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org1488b8c" class="outline-4">
|
||||
<h4 id="org1488b8c"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_local_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">local_energy</span>, <span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
||||
@ -993,14 +1006,14 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3983cd9" class="outline-4">
|
||||
<h4 id="org3983cd9"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-orgb3d914a" class="outline-4">
|
||||
<h4 id="orgb3d914a"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c6a80d" class="outline-4">
|
||||
<h4 id="org2c6a80d"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-org23f7179" class="outline-4">
|
||||
<h4 id="org23f7179"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<table id="orgff70793" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org31b4363" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1096,12 +1109,12 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc21ce1f" class="outline-4">
|
||||
<h4 id="orgc21ce1f"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-orgb8783a5" class="outline-4">
|
||||
<h4 id="orgb8783a5"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7de8da0" class="outline-3">
|
||||
<h3 id="org7de8da0"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-orgb28020c" class="outline-3">
|
||||
<h3 id="orgb28020c"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
The drift vector is calculated as the ration of the gradient
|
||||
@ -1115,8 +1128,8 @@ with the determinant of the wavefunction.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgadcb9bb" class="outline-4">
|
||||
<h4 id="orgadcb9bb"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org1c91ce3" class="outline-4">
|
||||
<h4 id="org1c91ce3"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_drift_vector</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">drift_vector</span>);
|
||||
@ -1125,14 +1138,14 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgac329df" class="outline-4">
|
||||
<h4 id="orgac329df"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-org328f6c1" class="outline-4">
|
||||
<h4 id="org328f6c1"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc5ca11b" class="outline-4">
|
||||
<h4 id="orgc5ca11b"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-orgfbcd913" class="outline-4">
|
||||
<h4 id="orgfbcd913"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<table id="orgc625d1f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf684768" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1353,15 +1366,15 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc37cc5b" class="outline-4">
|
||||
<h4 id="orgc37cc5b"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-orgab49098" class="outline-4">
|
||||
<h4 id="orgab49098"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<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>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -311,16 +324,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org2f45dfa">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org7e4c378">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgf9b0322">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org29dad3a">4. Get the size of a memory block</a></li>
|
||||
<li><a href="#orgfc3fb70">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org3f8b373">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org824a904">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orgc8c4895">4. Get the size of a memory block</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2f45dfa" class="outline-2">
|
||||
<h2 id="org2f45dfa"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-orgfc3fb70" class="outline-2">
|
||||
<h2 id="orgfc3fb70"><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
|
||||
@ -362,8 +375,8 @@ array, and the number of allocated blocks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7e4c378" class="outline-2">
|
||||
<h2 id="org7e4c378"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org3f8b373" class="outline-2">
|
||||
<h2 id="org3f8b373"><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
|
||||
@ -372,8 +385,8 @@ passing an instance of a <code>qmckl_memory_info_struct</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf9b0322" class="outline-2">
|
||||
<h2 id="orgf9b0322"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-org824a904" class="outline-2">
|
||||
<h2 id="org824a904"><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
|
||||
@ -399,7 +412,7 @@ If the allocation failed, the <code>NULL</code> pointer is returned.
|
||||
|
||||
<span style="color: #228b22;">qmckl_context_struct</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">ctx</span> = (<span style="color: #228b22;">qmckl_context_struct</span>*) context;
|
||||
|
||||
/* <span style="color: #b22222;">Allocate memory and zero it </span>*/
|
||||
/* <span style="color: #b22222;">Allocate memory and zero it</span> */
|
||||
<span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
<span style="color: #228b22;">void</span> * <span style="color: #a0522d;">pointer</span> = aligned_alloc(64, ((info.size+64) >> 6) << 6 );
|
||||
<span style="color: #483d8b;">#else</span>
|
||||
@ -412,7 +425,7 @@ If the allocation failed, the <code>NULL</code> pointer is returned.
|
||||
|
||||
qmckl_lock(context);
|
||||
{
|
||||
/* <span style="color: #b22222;">If qmckl_memory_struct is full, reallocate a larger one </span>*/
|
||||
/* <span style="color: #b22222;">If qmckl_memory_struct is full, reallocate a larger one</span> */
|
||||
<span style="color: #a020f0;">if</span> (ctx->memory.n_allocated == ctx->memory.array_size) {
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">size_t</span> <span style="color: #a0522d;">old_size</span> = ctx->memory.array_size;
|
||||
<span style="color: #228b22;">qmckl_memory_info_struct</span> * <span style="color: #a0522d;">new_array</span> = realloc(ctx->memory.element,
|
||||
@ -424,19 +437,19 @@ If the allocation failed, the <code>NULL</code> pointer is returned.
|
||||
<span style="color: #a020f0;">return</span> <span style="color: #008b8b;">NULL</span>;
|
||||
}
|
||||
|
||||
memset( &(new_array[old_size]), 0, <span style="color: #228b22;">old_size</span> * <span style="color: #a020f0;">sizeof</span>(qmckl_memory_info_struct) );
|
||||
memset( &(new_array[old_size]), 0, old_size * <span style="color: #a020f0;">sizeof</span>(qmckl_memory_info_struct) );
|
||||
ctx->memory.element = new_array;
|
||||
ctx->memory.array_size = 2L * old_size;
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Find first NULL entry </span>*/
|
||||
/* <span style="color: #b22222;">Find first NULL entry</span> */
|
||||
<span style="color: #228b22;">size_t</span> <span style="color: #a0522d;">pos</span> = (<span style="color: #228b22;">size_t</span>) 0;
|
||||
<span style="color: #a020f0;">while</span> ( pos < ctx->memory.array_size && ctx->memory.element[pos].size > (<span style="color: #228b22;">size_t</span>) 0) {
|
||||
pos += (<span style="color: #228b22;">size_t</span>) 1;
|
||||
}
|
||||
assert (ctx->memory.element[pos].size == (<span style="color: #228b22;">size_t</span>) 0);
|
||||
|
||||
/* <span style="color: #b22222;">Copy info at the new location </span>*/
|
||||
/* <span style="color: #b22222;">Copy info at the new location</span> */
|
||||
memcpy(&(ctx->memory.element[pos]), &info, <span style="color: #a020f0;">sizeof</span>(qmckl_memory_info_struct));
|
||||
ctx->memory.element[pos].pointer = pointer;
|
||||
ctx->memory.n_allocated += (<span style="color: #228b22;">size_t</span>) 1;
|
||||
@ -450,25 +463,25 @@ If the allocation failed, the <code>NULL</code> pointer is returned.
|
||||
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Create a context </span>*/
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Create a context</span> */
|
||||
<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span> = qmckl_context_create();
|
||||
|
||||
<span style="color: #228b22;">qmckl_memory_info_struct</span> <span style="color: #a0522d;">info</span> = qmckl_memory_info_struct_zero;
|
||||
info.size = (<span style="color: #228b22;">size_t</span>) 3*<span style="color: #a020f0;">sizeof</span>(<span style="color: #228b22;">int</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Allocate an array of ints </span>*/
|
||||
/* <span style="color: #b22222;">Allocate an array of ints</span> */
|
||||
<span style="color: #228b22;">int</span> *<span style="color: #a0522d;">a</span> = (<span style="color: #228b22;">int</span>*) <span style="color: #0000ff;">qmckl_malloc</span>(context, info);
|
||||
|
||||
/* <span style="color: #b22222;">Check that array of ints is OK </span>*/
|
||||
/* <span style="color: #b22222;">Check that array of ints is OK</span> */
|
||||
<span style="color: #0000ff;">assert</span>(a != <span style="color: #008b8b;">NULL</span>);
|
||||
<span style="color: #228b22;">a</span>[0] = 1; <span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">a</span>[0] == 1);
|
||||
<span style="color: #228b22;">a</span>[1] = 2; <span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">a</span>[1] == 2);
|
||||
<span style="color: #228b22;">a</span>[2] = 3; <span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">a</span>[2] == 3);
|
||||
|
||||
/* <span style="color: #b22222;">Allocate another array of ints </span>*/
|
||||
/* <span style="color: #b22222;">Allocate another array of ints</span> */
|
||||
<span style="color: #228b22;">int</span> *<span style="color: #a0522d;">b</span> = (<span style="color: #228b22;">int</span>*) <span style="color: #0000ff;">qmckl_malloc</span>(context, info);
|
||||
|
||||
/* <span style="color: #b22222;">Check that array of ints is OK </span>*/
|
||||
/* <span style="color: #b22222;">Check that array of ints is OK</span> */
|
||||
<span style="color: #0000ff;">assert</span>(b != <span style="color: #008b8b;">NULL</span>);
|
||||
<span style="color: #228b22;">b</span>[0] = 1; <span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">b</span>[0] == 1);
|
||||
<span style="color: #228b22;">b</span>[1] = 2; <span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">b</span>[1] == 2);
|
||||
@ -509,14 +522,14 @@ allocation and needs to be updated.
|
||||
|
||||
qmckl_lock(context);
|
||||
{
|
||||
/* <span style="color: #b22222;">Find pointer in array of saved pointers </span>*/
|
||||
/* <span style="color: #b22222;">Find pointer in array of saved pointers</span> */
|
||||
<span style="color: #228b22;">size_t</span> <span style="color: #a0522d;">pos</span> = (<span style="color: #228b22;">size_t</span>) 0;
|
||||
<span style="color: #a020f0;">while</span> ( pos < ctx->memory.array_size && ctx->memory.element[pos].pointer != ptr) {
|
||||
pos += (<span style="color: #228b22;">size_t</span>) 1;
|
||||
}
|
||||
|
||||
<span style="color: #a020f0;">if</span> (pos >= ctx->memory.array_size) {
|
||||
/* <span style="color: #b22222;">Not found </span>*/
|
||||
/* <span style="color: #b22222;">Not found</span> */
|
||||
qmckl_unlock(context);
|
||||
<span style="color: #a020f0;">return</span> qmckl_failwith(context,
|
||||
QMCKL_INVALID_ARG_2,
|
||||
@ -537,8 +550,8 @@ allocation and needs to be updated.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org29dad3a" class="outline-2">
|
||||
<h2 id="org29dad3a"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div id="outline-container-orgc8c4895" class="outline-2">
|
||||
<h2 id="orgc8c4895"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
All the blocks allocated with <code>qmckl_malloc</code> keep track of how many
|
||||
@ -580,14 +593,14 @@ bytes were allocated. Using <code>qmckl_malloc_size</code> allows to get this in
|
||||
|
||||
qmckl_lock(context);
|
||||
{
|
||||
/* <span style="color: #b22222;">Find the pointer entry </span>*/
|
||||
/* <span style="color: #b22222;">Find the pointer entry</span> */
|
||||
<span style="color: #228b22;">size_t</span> <span style="color: #a0522d;">pos</span> = (<span style="color: #228b22;">size_t</span>) 0;
|
||||
<span style="color: #a020f0;">while</span> ( pos < ctx->memory.array_size && ctx->memory.element[pos].pointer != ptr) {
|
||||
pos += (<span style="color: #228b22;">size_t</span>) 1;
|
||||
}
|
||||
|
||||
<span style="color: #a020f0;">if</span> (pos >= ctx->memory.array_size) {
|
||||
/* <span style="color: #b22222;">Not found </span>*/
|
||||
/* <span style="color: #b22222;">Not found</span> */
|
||||
qmckl_unlock(context);
|
||||
<span style="color: #a020f0;">return</span> qmckl_failwith(context,
|
||||
QMCKL_INVALID_ARG_2,
|
||||
@ -595,7 +608,7 @@ bytes were allocated. Using <code>qmckl_malloc_size</code> allows to get this in
|
||||
<span style="color: #8b2252;">"Pointer not found in context"</span>);
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Copy info </span>*/
|
||||
/* <span style="color: #b22222;">Copy info</span> */
|
||||
memcpy(info, &(ctx->memory.element[pos]), <span style="color: #a020f0;">sizeof</span>(qmckl_memory_info_struct));
|
||||
}
|
||||
qmckl_unlock(context);
|
||||
@ -607,16 +620,16 @@ bytes were allocated. Using <code>qmckl_malloc_size</code> allows to get this in
|
||||
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Create a context </span>*/
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Create a context</span> */
|
||||
context = qmckl_context_create();
|
||||
|
||||
info = qmckl_memory_info_struct_zero;
|
||||
info.size = (<span style="color: #228b22;">size_t</span>) 3*<span style="color: #a020f0;">sizeof</span>(<span style="color: #228b22;">int</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Allocate an array of ints </span>*/
|
||||
/* <span style="color: #b22222;">Allocate an array of ints</span> */
|
||||
a = (<span style="color: #228b22;">int</span>*) <span style="color: #0000ff;">qmckl_malloc</span>(context, info);
|
||||
|
||||
/* <span style="color: #b22222;">Check that the size of a is 3*sizeof(int) </span>*/
|
||||
/* <span style="color: #b22222;">Check that the size of a is 3*sizeof(int)</span> */
|
||||
info = qmckl_memory_info_struct_zero;
|
||||
rc = qmckl_get_malloc_info(context, <span style="color: #008b8b;">NULL</span>, &info);
|
||||
<span style="color: #0000ff;">assert</span> (rc == QMCKL_INVALID_ARG_2);
|
||||
@ -633,7 +646,7 @@ rc = qmckl_context_destroy(context);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
165
qmckl_mo.html
165
qmckl_mo.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Molecular Orbitals</title>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -311,54 +324,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org2c4ffcf">1. Context</a>
|
||||
<li><a href="#org682a54b">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgbc18ba1">1.1. Data structure</a></li>
|
||||
<li><a href="#org24b8cf0">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org2d505d8">1.3. Access functions</a>
|
||||
<li><a href="#org668c540">1.1. Data structure</a></li>
|
||||
<li><a href="#org71b1052">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org325f905">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org8d29b74">1.3.1. Fortran interfaces</a></li>
|
||||
<li><a href="#org1d05593">1.3.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org46b6222">1.4. Update</a>
|
||||
<li><a href="#org1b8b31f">1.4. Update</a>
|
||||
<ul>
|
||||
<li><a href="#org7700e80">1.4.1. Fortran interface</a></li>
|
||||
<li><a href="#orgec75eda">1.4.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8181221">2. Computation</a>
|
||||
<li><a href="#org80aa64c">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org1786064">2.1. Computation of MOs: values only</a>
|
||||
<li><a href="#orgb8833e9">2.1. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org4e8e84b">2.1.1. Get</a></li>
|
||||
<li><a href="#org314831a">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgbf0de63">2.1.3. Compute</a></li>
|
||||
<li><a href="#orgcf29deb">2.1.4. HPC version</a></li>
|
||||
<li><a href="#org26e8530">2.1.1. Get</a></li>
|
||||
<li><a href="#orgbc19449">2.1.2. Provide</a></li>
|
||||
<li><a href="#org9e08c63">2.1.3. Compute</a></li>
|
||||
<li><a href="#org192dd6e">2.1.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdb89c84">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#orgfa4accb">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org88a73fe">2.2.1. Get</a></li>
|
||||
<li><a href="#orgb529fe8">2.2.2. Provide</a></li>
|
||||
<li><a href="#orga257f29">2.2.3. Compute</a></li>
|
||||
<li><a href="#orgecf5212">2.2.4. HPC version</a></li>
|
||||
<li><a href="#org1dddec7">2.2.1. Get</a></li>
|
||||
<li><a href="#org5c7f2ae">2.2.2. Provide</a></li>
|
||||
<li><a href="#org2a17893">2.2.3. Compute</a></li>
|
||||
<li><a href="#orgfed1121">2.2.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgab6e322">2.3. Rescaling of MO coefficients</a>
|
||||
<li><a href="#org9aa36a8">2.3. Rescaling of MO coefficients</a>
|
||||
<ul>
|
||||
<li><a href="#org7448dc9">2.3.1. Fortran interface</a></li>
|
||||
<li><a href="#org096a317">2.3.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4b2106f">2.4. Test</a></li>
|
||||
<li><a href="#orga144c69">2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c4ffcf" class="outline-2">
|
||||
<h2 id="org2c4ffcf"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org682a54b" class="outline-2">
|
||||
<h2 id="org682a54b"><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:
|
||||
@ -438,8 +451,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbc18ba1" class="outline-3">
|
||||
<h3 id="orgbc18ba1"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org668c540" class="outline-3">
|
||||
<h3 id="org668c540"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_mo_basis_struct</span> {
|
||||
@ -491,8 +504,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org24b8cf0" class="outline-3">
|
||||
<h3 id="org24b8cf0"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org71b1052" class="outline-3">
|
||||
<h3 id="org71b1052"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -512,8 +525,8 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d505d8" class="outline-3">
|
||||
<h3 id="org2d505d8"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-org325f905" class="outline-3">
|
||||
<h3 id="org325f905"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
When all the data for the AOs have been provided, the following
|
||||
@ -526,13 +539,13 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8d29b74" class="outline-4">
|
||||
<h4 id="org8d29b74"><span class="section-number-4">1.3.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-org1d05593" class="outline-4">
|
||||
<h4 id="org1d05593"><span class="section-number-4">1.3.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org46b6222" class="outline-3">
|
||||
<h3 id="org46b6222"><span class="section-number-3">1.4</span> Update</h3>
|
||||
<div id="outline-container-org1b8b31f" class="outline-3">
|
||||
<h3 id="org1b8b31f"><span class="section-number-3">1.4</span> Update</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Useless MOs can be removed, for instance virtual MOs in a single
|
||||
@ -553,22 +566,22 @@ otherwise it is kept.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7700e80" class="outline-4">
|
||||
<h4 id="org7700e80"><span class="section-number-4">1.4.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-orgec75eda" class="outline-4">
|
||||
<h4 id="orgec75eda"><span class="section-number-4">1.4.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8181221" class="outline-2">
|
||||
<h2 id="org8181221"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org80aa64c" class="outline-2">
|
||||
<h2 id="org80aa64c"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org1786064" class="outline-3">
|
||||
<h3 id="org1786064"><span class="section-number-3">2.1</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-orgb8833e9" class="outline-3">
|
||||
<h3 id="orgb8833e9"><span class="section-number-3">2.1</span> Computation of MOs: values only</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
<div id="outline-container-org4e8e84b" class="outline-4">
|
||||
<h4 id="org4e8e84b"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org26e8530" class="outline-4">
|
||||
<h4 id="org26e8530"><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>
|
||||
@ -592,8 +605,8 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org314831a" class="outline-4">
|
||||
<h4 id="org314831a"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgbc19449" class="outline-4">
|
||||
<h4 id="orgbc19449"><span class="section-number-4">2.1.2</span> Provide</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_provide_mo_basis_mo_value</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -623,7 +636,7 @@ Uses the given array to compute the values.
|
||||
<span style="color: #008b8b;">NULL</span>);
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Compute if necessary </span>*/
|
||||
/* <span style="color: #b22222;">Compute if necessary</span> */
|
||||
<span style="color: #a020f0;">if</span> (ctx->point.date > ctx->mo_basis.mo_value_date) {
|
||||
|
||||
<span style="color: #228b22;">qmckl_memory_info_struct</span> <span style="color: #a0522d;">mem_info</span> = qmckl_memory_info_struct_zero;
|
||||
@ -634,7 +647,7 @@ Uses the given array to compute the values.
|
||||
rc = qmckl_get_malloc_info(context, ctx->mo_basis.mo_value, &mem_info_test);
|
||||
|
||||
/* <span style="color: #b22222;">if rc != QMCKL_SUCCESS, we are maybe in an _inplace function because the</span>
|
||||
<span style="color: #b22222;"> memory was not allocated with qmckl_malloc </span>*/
|
||||
<span style="color: #b22222;"> memory was not allocated with qmckl_malloc</span> */
|
||||
|
||||
<span style="color: #a020f0;">if</span> ((rc == QMCKL_SUCCESS) && (mem_info_test.size != mem_info.size)) {
|
||||
rc = qmckl_free(context, ctx->mo_basis.mo_value);
|
||||
@ -643,7 +656,7 @@ Uses the given array to compute the values.
|
||||
}
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Allocate array </span>*/
|
||||
/* <span style="color: #b22222;">Allocate array</span> */
|
||||
<span style="color: #a020f0;">if</span> (ctx->mo_basis.mo_value == <span style="color: #008b8b;">NULL</span>) {
|
||||
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a0522d;">mo_value</span> = (<span style="color: #228b22;">double</span>*) qmckl_malloc(context, mem_info);
|
||||
@ -678,10 +691,10 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf0de63" class="outline-4">
|
||||
<h4 id="orgbf0de63"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div id="outline-container-org9e08c63" class="outline-4">
|
||||
<h4 id="org9e08c63"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org6cc86df" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc057a41" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -855,8 +868,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcf29deb" class="outline-4">
|
||||
<h4 id="orgcf29deb"><span class="section-number-4">2.1.4</span> HPC version</h4>
|
||||
<div id="outline-container-org192dd6e" class="outline-4">
|
||||
<h4 id="org192dd6e"><span class="section-number-4">2.1.4</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -949,12 +962,12 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdb89c84" class="outline-3">
|
||||
<h3 id="orgdb89c84"><span class="section-number-3">2.2</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-orgfa4accb" class="outline-3">
|
||||
<h3 id="orgfa4accb"><span class="section-number-3">2.2</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div id="outline-container-org88a73fe" class="outline-4">
|
||||
<h4 id="org88a73fe"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org1dddec7" class="outline-4">
|
||||
<h4 id="org1dddec7"><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>
|
||||
@ -978,8 +991,8 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb529fe8" class="outline-4">
|
||||
<h4 id="orgb529fe8"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org5c7f2ae" class="outline-4">
|
||||
<h4 id="org5c7f2ae"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_provide_mo_basis_mo_vgl</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -1009,7 +1022,7 @@ Uses the given array to compute the VGL.
|
||||
<span style="color: #008b8b;">NULL</span>);
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Compute if necessary </span>*/
|
||||
/* <span style="color: #b22222;">Compute if necessary</span> */
|
||||
<span style="color: #a020f0;">if</span> (ctx->point.date > ctx->mo_basis.mo_vgl_date) {
|
||||
|
||||
<span style="color: #228b22;">qmckl_memory_info_struct</span> <span style="color: #a0522d;">mem_info</span> = qmckl_memory_info_struct_zero;
|
||||
@ -1020,7 +1033,7 @@ Uses the given array to compute the VGL.
|
||||
rc = qmckl_get_malloc_info(context, ctx->mo_basis.mo_vgl, &mem_info_test);
|
||||
|
||||
/* <span style="color: #b22222;">if rc != QMCKL_SUCCESS, we are maybe in an _inplace function because the</span>
|
||||
<span style="color: #b22222;"> memory was not allocated with qmckl_malloc </span>*/
|
||||
<span style="color: #b22222;"> memory was not allocated with qmckl_malloc</span> */
|
||||
|
||||
<span style="color: #a020f0;">if</span> ((rc == QMCKL_SUCCESS) && (mem_info_test.size != mem_info.size)) {
|
||||
rc = qmckl_free(context, ctx->mo_basis.mo_vgl);
|
||||
@ -1029,7 +1042,7 @@ Uses the given array to compute the VGL.
|
||||
}
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Allocate array </span>*/
|
||||
/* <span style="color: #b22222;">Allocate array</span> */
|
||||
<span style="color: #a020f0;">if</span> (ctx->mo_basis.mo_vgl == <span style="color: #008b8b;">NULL</span>) {
|
||||
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a0522d;">mo_vgl</span> = (<span style="color: #228b22;">double</span>*) qmckl_malloc(context, mem_info);
|
||||
@ -1063,10 +1076,10 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga257f29" class="outline-4">
|
||||
<h4 id="orga257f29"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-org2a17893" class="outline-4">
|
||||
<h4 id="org2a17893"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org2cef08b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9ecec55" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1238,8 +1251,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgecf5212" class="outline-4">
|
||||
<h4 id="orgecf5212"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-orgfed1121" class="outline-4">
|
||||
<h4 id="orgfed1121"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -1385,8 +1398,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgab6e322" class="outline-3">
|
||||
<h3 id="orgab6e322"><span class="section-number-3">2.3</span> Rescaling of MO coefficients</h3>
|
||||
<div id="outline-container-org9aa36a8" class="outline-3">
|
||||
<h3 id="org9aa36a8"><span class="section-number-3">2.3</span> Rescaling of MO coefficients</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
When evaluating Slater determinants, the value of the determinants
|
||||
@ -1403,19 +1416,19 @@ correct range.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7448dc9" class="outline-4">
|
||||
<h4 id="org7448dc9"><span class="section-number-4">2.3.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org096a317" class="outline-4">
|
||||
<h4 id="org096a317"><span class="section-number-4">2.3.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4b2106f" class="outline-3">
|
||||
<h3 id="org4b2106f"><span class="section-number-3">2.4</span> Test</h3>
|
||||
<div id="outline-container-orga144c69" class="outline-3">
|
||||
<h3 id="orga144c69"><span class="section-number-3">2.4</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Nucleus</title>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -333,28 +346,28 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orge3b8d66">1. Context</a>
|
||||
<li><a href="#org35ef3f2">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org3cf8707">1.1. Data structure</a></li>
|
||||
<li><a href="#orge5fefbc">1.2. Access functions</a></li>
|
||||
<li><a href="#org7072343">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgea1b799">1.4. Test</a></li>
|
||||
<li><a href="#org9eddb01">1.1. Data structure</a></li>
|
||||
<li><a href="#org22154d2">1.2. Access functions</a></li>
|
||||
<li><a href="#orgb43eafd">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org97aa651">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8defe5f">2. Computation</a>
|
||||
<li><a href="#orgeb6a2ea">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org4381834">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#org49af266">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgaab46b6">2.1.1. Get</a></li>
|
||||
<li><a href="#org5bc2321">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgd9ce7f7">2.1.3. Test</a></li>
|
||||
<li><a href="#orgc9369a1">2.1.1. Get</a></li>
|
||||
<li><a href="#org502df88">2.1.2. Compute</a></li>
|
||||
<li><a href="#org1d7b2ba">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9e4d911">2.2. Nuclear repulsion energy</a>
|
||||
<li><a href="#orgdbf2cd5">2.2. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#org1e1246c">2.2.1. Get</a></li>
|
||||
<li><a href="#orge11012a">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgc328551">2.2.3. Test</a></li>
|
||||
<li><a href="#orge857a59">2.2.1. Get</a></li>
|
||||
<li><a href="#org9f1330f">2.2.2. Compute</a></li>
|
||||
<li><a href="#orga66d4cc">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -363,8 +376,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge3b8d66" class="outline-2">
|
||||
<h2 id="orge3b8d66"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org35ef3f2" class="outline-2">
|
||||
<h2 id="org35ef3f2"><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:
|
||||
@ -461,8 +474,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3cf8707" class="outline-3">
|
||||
<h3 id="org3cf8707"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org9eddb01" class="outline-3">
|
||||
<h3 id="org9eddb01"><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> {
|
||||
@ -507,7 +520,7 @@ this mechanism.
|
||||
|
||||
ctx->nucleus.uninitialized = (1 << 3) - 1;
|
||||
|
||||
/* <span style="color: #b22222;">Default values </span>*/
|
||||
/* <span style="color: #b22222;">Default values</span> */
|
||||
|
||||
<span style="color: #a020f0;">return</span> QMCKL_SUCCESS;
|
||||
}
|
||||
@ -516,8 +529,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge5fefbc" class="outline-3">
|
||||
<h3 id="orge5fefbc"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org22154d2" class="outline-3">
|
||||
<h3 id="org22154d2"><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
|
||||
@ -531,8 +544,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7072343" class="outline-3">
|
||||
<h3 id="org7072343"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgb43eafd" class="outline-3">
|
||||
<h3 id="orgb43eafd"><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
|
||||
@ -578,14 +591,14 @@ are be given in atomic units.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgea1b799" class="outline-3">
|
||||
<h3 id="orgea1b799"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org97aa651" class="outline-3">
|
||||
<h3 id="org97aa651"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">nucl_charge</span> = chbrclf_charge;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">nucl_coord</span> = &(chbrclf_nucl_coord[0][0]);
|
||||
|
||||
/* <span style="color: #b22222;">--- </span>*/
|
||||
/* <span style="color: #b22222;">---</span> */
|
||||
|
||||
<span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">rc</span>;
|
||||
|
||||
@ -648,8 +661,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2, chbrclf_nucl_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8defe5f" class="outline-2">
|
||||
<h2 id="org8defe5f"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgeb6a2ea" class="outline-2">
|
||||
<h2 id="orgeb6a2ea"><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
|
||||
@ -662,12 +675,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4381834" class="outline-3">
|
||||
<h3 id="org4381834"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-org49af266" class="outline-3">
|
||||
<h3 id="org49af266"><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-orgaab46b6" class="outline-4">
|
||||
<h4 id="orgaab46b6"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgc9369a1" class="outline-4">
|
||||
<h4 id="orgc9369a1"><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>
|
||||
@ -679,10 +692,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5bc2321" class="outline-4">
|
||||
<h4 id="org5bc2321"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org502df88" class="outline-4">
|
||||
<h4 id="org502df88"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgf4bcf09" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc6f2153" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -760,11 +773,11 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd9ce7f7" class="outline-4">
|
||||
<h4 id="orgd9ce7f7"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org1d7b2ba" class="outline-4">
|
||||
<h4 id="org1d7b2ba"><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>*/
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
||||
|
||||
<span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_nucleus_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
|
||||
@ -780,8 +793,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9e4d911" class="outline-3">
|
||||
<h3 id="org9e4d911"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-orgdbf2cd5" class="outline-3">
|
||||
<h3 id="orgdbf2cd5"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
\[
|
||||
@ -790,8 +803,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1e1246c" class="outline-4">
|
||||
<h4 id="org1e1246c"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orge857a59" class="outline-4">
|
||||
<h4 id="orge857a59"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_repulsion</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">energy</span>);
|
||||
@ -800,10 +813,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge11012a" class="outline-4">
|
||||
<h4 id="orge11012a"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org9f1330f" class="outline-4">
|
||||
<h4 id="org9f1330f"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org370378c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org34ca0df" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -893,11 +906,11 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc328551" class="outline-4">
|
||||
<h4 id="orgc328551"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orga66d4cc" class="outline-4">
|
||||
<h4 id="orga66d4cc"><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>*/
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
||||
|
||||
<span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_nucleus_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
|
||||
@ -914,7 +927,7 @@ rc = qmckl_get_nucleus_repulsion(context, &rep);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<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>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -333,16 +346,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org258e50f">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org60d2adb">2. Precision</a></li>
|
||||
<li><a href="#orgb813b85">3. Range</a></li>
|
||||
<li><a href="#orgb8c853b">4. Helper functions</a></li>
|
||||
<li><a href="#orgd07e8d0">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org79fa17b">2. Precision</a></li>
|
||||
<li><a href="#orgfe7ae52">3. Range</a></li>
|
||||
<li><a href="#orgbe9a213">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org258e50f" class="outline-2">
|
||||
<h2 id="org258e50f"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-orgd07e8d0" class="outline-2">
|
||||
<h2 id="orgd07e8d0"><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 +366,7 @@ Arithmetic (IEEE 754),
|
||||
refers to the number of exponent bits.
|
||||
</p>
|
||||
|
||||
<table id="orgd45b30e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0b45451" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -397,8 +410,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org60d2adb" class="outline-2">
|
||||
<h2 id="org60d2adb"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org79fa17b" class="outline-2">
|
||||
<h2 id="org79fa17b"><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
|
||||
@ -427,7 +440,7 @@ numerical precision in the context.
|
||||
|
||||
<span style="color: #228b22;">qmckl_context_struct</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">ctx</span> = (<span style="color: #228b22;">qmckl_context_struct</span>*) context;
|
||||
|
||||
/* <span style="color: #b22222;">This should be always true because the context is valid </span>*/
|
||||
/* <span style="color: #b22222;">This should be always true because the context is valid</span> */
|
||||
assert (ctx != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
qmckl_lock(context);
|
||||
@ -485,8 +498,8 @@ numerical precision in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb813b85" class="outline-2">
|
||||
<h2 id="orgb813b85"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-orgfe7ae52" class="outline-2">
|
||||
<h2 id="orgfe7ae52"><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
|
||||
@ -515,7 +528,7 @@ range in a given context.
|
||||
|
||||
<span style="color: #228b22;">qmckl_context_struct</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">ctx</span> = (<span style="color: #228b22;">qmckl_context_struct</span>*) context;
|
||||
|
||||
/* <span style="color: #b22222;">This should be always true because the context is valid </span>*/
|
||||
/* <span style="color: #b22222;">This should be always true because the context is valid</span> */
|
||||
assert (ctx != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
qmckl_lock(context);
|
||||
@ -561,8 +574,8 @@ range in a given context.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgb8c853b" class="outline-2">
|
||||
<h2 id="orgb8c853b"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-orgbe9a213" class="outline-2">
|
||||
<h2 id="orgbe9a213"><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 +594,7 @@ We need to remove the sign bit from the precision.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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>
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Point</title>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -333,25 +346,25 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org7b40614">1. Context</a>
|
||||
<li><a href="#org283f976">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org2649e86">1.1. Data structure</a></li>
|
||||
<li><a href="#org2ab4352">1.2. Access functions</a>
|
||||
<li><a href="#orgc595b3f">1.1. Data structure</a></li>
|
||||
<li><a href="#org2f14763">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orga4ac632">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org4ecc5b6">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#org5fd9680">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org4b85b06">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0f98f02">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org54ab09a">1.4. Test</a></li>
|
||||
<li><a href="#orgde6328a">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgb6633c6">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b40614" class="outline-2">
|
||||
<h2 id="org7b40614"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org283f976" class="outline-2">
|
||||
<h2 id="org283f976"><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:
|
||||
@ -401,8 +414,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2649e86" class="outline-3">
|
||||
<h3 id="org2649e86"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgc595b3f" class="outline-3">
|
||||
<h3 id="orgc595b3f"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_point_struct</span> {
|
||||
@ -438,8 +451,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2ab4352" class="outline-3">
|
||||
<h3 id="org2ab4352"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org2f14763" class="outline-3">
|
||||
<h3 id="org2f14763"><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
|
||||
@ -450,8 +463,8 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga4ac632" class="outline-4">
|
||||
<h4 id="orga4ac632"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-org5fd9680" class="outline-4">
|
||||
<h4 id="org5fd9680"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div class="outline-text-4" id="text-1-2-1">
|
||||
<p>
|
||||
Returns the number of points stored in the context.
|
||||
@ -473,8 +486,8 @@ Returns the number of points stored in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4ecc5b6" class="outline-4">
|
||||
<h4 id="org4ecc5b6"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-org4b85b06" class="outline-4">
|
||||
<h4 id="org4b85b06"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-2-2">
|
||||
<p>
|
||||
Returns the point coordinates as sequences of (x,y,z).
|
||||
@ -502,8 +515,8 @@ The pointer is assumed to point on a memory block of size
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org0f98f02" class="outline-3">
|
||||
<h3 id="org0f98f02"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgde6328a" class="outline-3">
|
||||
<h3 id="orgde6328a"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
When the data is set in the context, if the arrays are large
|
||||
@ -542,6 +555,13 @@ Copy a sequence of <code>num</code> points \((x,y,z)\) into the context.
|
||||
<span style="color: #a020f0;">return</span> QMCKL_NULL_CONTEXT;
|
||||
}
|
||||
|
||||
<span style="color: #a020f0;">if</span> (num <= 0) {
|
||||
<span style="color: #a020f0;">return</span> qmckl_failwith( context,
|
||||
QMCKL_INVALID_ARG_4,
|
||||
<span style="color: #8b2252;">"qmckl_set_point"</span>,
|
||||
<span style="color: #8b2252;">"Number of points should be >0."</span>);
|
||||
}
|
||||
|
||||
<span style="color: #a020f0;">if</span> (size_max < 3*num) {
|
||||
<span style="color: #a020f0;">return</span> qmckl_failwith( context,
|
||||
QMCKL_INVALID_ARG_4,
|
||||
@ -604,7 +624,7 @@ Copy a sequence of <code>num</code> points \((x,y,z)\) into the context.
|
||||
}
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Increment the date of the context </span>*/
|
||||
/* <span style="color: #b22222;">Increment the date of the context</span> */
|
||||
rc = qmckl_context_touch(context);
|
||||
assert (rc == QMCKL_SUCCESS);
|
||||
|
||||
@ -635,15 +655,15 @@ Copy a sequence of <code>num</code> points \((x,y,z)\) into the context.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org54ab09a" class="outline-3">
|
||||
<h3 id="org54ab09a"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgb6633c6" class="outline-3">
|
||||
<h3 id="orgb6633c6"><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>*/
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">point_num</span> = chbrclf_elec_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">coord</span> = &(chbrclf_elec_coord[0][0][0]);
|
||||
|
||||
/* <span style="color: #b22222;">--- </span>*/
|
||||
/* <span style="color: #b22222;">---</span> */
|
||||
|
||||
<span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">rc</span>;
|
||||
<span style="color: #228b22;">double</span> <span style="color: #a0522d;">coord2</span>[point_num*3];
|
||||
@ -695,7 +715,7 @@ rc = qmckl_get_point (context, <span style="color: #8b2252;">'N'</span>, coord3,
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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>
|
||||
<!-- 2022-11-17 Thu 18:27 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Sherman-Morrison-Woodbury</title>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -333,86 +346,86 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org559a417">1. Headers</a></li>
|
||||
<li><a href="#orgbfc23e9">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#org151898f">1. Headers</a></li>
|
||||
<li><a href="#org43839a7">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#orgbaf6a06">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<li><a href="#org5174978">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgc9875ee">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org64ad90f">2.1.2. C header</a></li>
|
||||
<li><a href="#orga9c6fc6">2.1.3. C source</a></li>
|
||||
<li><a href="#org84f6891">2.1.4. Performance</a></li>
|
||||
<li><a href="#orgdf498a0">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org9149d46">2.1.2. C header</a></li>
|
||||
<li><a href="#org8662c88">2.1.3. C source</a></li>
|
||||
<li><a href="#org4ea8353">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7230bc0">3. Woodbury 2x2</a>
|
||||
<li><a href="#org8ea0531">3. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#orged4a330">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<li><a href="#org59bfb5c">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<ul>
|
||||
<li><a href="#org07c0c7c">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org523764f">3.1.2. C header</a></li>
|
||||
<li><a href="#org41c3b7a">3.1.3. C source</a></li>
|
||||
<li><a href="#org1e28a3c">3.1.4. Performance</a></li>
|
||||
<li><a href="#org58a9c2b">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgaa28b92">3.1.2. C header</a></li>
|
||||
<li><a href="#orga76a2c4">3.1.3. C source</a></li>
|
||||
<li><a href="#org79c885b">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2b49c7f">4. Woodbury 3x3</a>
|
||||
<li><a href="#org9d8922c">4. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#org5b63207">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<li><a href="#org7517a41">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgf7f6368">4.1.1. Requirements</a></li>
|
||||
<li><a href="#orgda0f531">4.1.2. C header</a></li>
|
||||
<li><a href="#orgbf1cf78">4.1.3. C source</a></li>
|
||||
<li><a href="#orgc42a33e">4.1.4. Performance…</a></li>
|
||||
<li><a href="#org73ceabd">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org58a3ca4">4.1.2. C header</a></li>
|
||||
<li><a href="#org3ccbd03">4.1.3. C source</a></li>
|
||||
<li><a href="#org7f2b531">4.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc1e157e">5. Sherman-Morrison with update splitting</a>
|
||||
<li><a href="#org6faa053">5. Sherman-Morrison with update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org0f32133">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<li><a href="#orgcc49f83">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org60aae96">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org38a9f02">5.1.2. C header</a></li>
|
||||
<li><a href="#org5061303">5.1.3. C source</a></li>
|
||||
<li><a href="#orga62b992">5.1.4. Performance…</a></li>
|
||||
<li><a href="#orgcc403e9">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org2f7269b">5.1.2. C header</a></li>
|
||||
<li><a href="#orgd19f088">5.1.3. C source</a></li>
|
||||
<li><a href="#org80494f1">5.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org932a1c2">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<li><a href="#org3a234c8">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#orgd89b396">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<li><a href="#org3a81b78">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<ul>
|
||||
<li><a href="#org9354dbb">6.1.1. Requirements</a></li>
|
||||
<li><a href="#org70eee96">6.1.2. C header</a></li>
|
||||
<li><a href="#org6b58b3b">6.1.3. C source</a></li>
|
||||
<li><a href="#org0f2b271">6.1.4. Performance…</a></li>
|
||||
<li><a href="#orgfcee9a8">6.1.1. Requirements</a></li>
|
||||
<li><a href="#orgfd165ef">6.1.2. C header</a></li>
|
||||
<li><a href="#org53d6b6c">6.1.3. C source</a></li>
|
||||
<li><a href="#org89c948e">6.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga773668">7. Helper Functions</a>
|
||||
<li><a href="#org26bbe20">7. Helper Functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgc5cc755">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<li><a href="#org5457cdd">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org88a719f">7.1.1. Requirements</a></li>
|
||||
<li><a href="#org0d48f00">7.1.2. C header</a></li>
|
||||
<li><a href="#org8990be5">7.1.3. C source</a></li>
|
||||
<li><a href="#org4475ea6">7.1.4. Performance</a></li>
|
||||
<li><a href="#org81b5867">7.1.1. Requirements</a></li>
|
||||
<li><a href="#orge0b38ed">7.1.2. C header</a></li>
|
||||
<li><a href="#org768eafc">7.1.3. C source</a></li>
|
||||
<li><a href="#org41cbb2e">7.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1a068bd">8. End of files</a></li>
|
||||
<li><a href="#orgba829f2">8. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org559a417" class="outline-2">
|
||||
<h2 id="org559a417"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-org151898f" class="outline-2">
|
||||
<h2 id="org151898f"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;">"qmckl.h"</span>
|
||||
@ -431,12 +444,12 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbfc23e9" class="outline-2">
|
||||
<h2 id="orgbfc23e9"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-org43839a7" class="outline-2">
|
||||
<h2 id="org43839a7"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgbaf6a06" class="outline-3">
|
||||
<h3 id="orgbaf6a06"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison</code></h3>
|
||||
<div id="outline-container-org5174978" class="outline-3">
|
||||
<h3 id="org5174978"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
This is the simplest of the available Sherman-Morrison-Woodbury kernels. It applies rank-1 updates one by one in
|
||||
@ -478,7 +491,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="orgb1ae61f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org35a1690" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -557,8 +570,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc9875ee" class="outline-4">
|
||||
<h4 id="orgc9875ee"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgdf498a0" class="outline-4">
|
||||
<h4 id="orgdf498a0"><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>
|
||||
@ -573,8 +586,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org64ad90f" class="outline-4">
|
||||
<h4 id="org64ad90f"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org9149d46" class="outline-4">
|
||||
<h4 id="org9149d46"><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_sherman_morrison</span> (
|
||||
@ -592,8 +605,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga9c6fc6" class="outline-4">
|
||||
<h4 id="orga9c6fc6"><span class="section-number-4">2.1.3</span> C source</h4>
|
||||
<div id="outline-container-org8662c88" class="outline-4">
|
||||
<h4 id="org8662c88"><span class="section-number-4">2.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -663,8 +676,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org84f6891" class="outline-4">
|
||||
<h4 id="org84f6891"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org4ea8353" class="outline-4">
|
||||
<h4 id="org4ea8353"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<p>
|
||||
This function performs best when there is only 1 rank-1 update in the update cycle. It is not useful to
|
||||
@ -676,12 +689,12 @@ where applying the update causes singular behaviour.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7230bc0" class="outline-2">
|
||||
<h2 id="org7230bc0"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-org8ea0531" class="outline-2">
|
||||
<h2 id="org8ea0531"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orged4a330" class="outline-3">
|
||||
<h3 id="orged4a330"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2</code></h3>
|
||||
<div id="outline-container-org59bfb5c" class="outline-3">
|
||||
<h3 id="org59bfb5c"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2</code></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
The Woodbury 2x2 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
||||
@ -705,7 +718,7 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
|
||||
<table id="org8bc21c4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgce12883" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -777,8 +790,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org07c0c7c" class="outline-4">
|
||||
<h4 id="org07c0c7c"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org58a9c2b" class="outline-4">
|
||||
<h4 id="org58a9c2b"><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>
|
||||
@ -792,8 +805,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org523764f" class="outline-4">
|
||||
<h4 id="org523764f"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgaa28b92" class="outline-4">
|
||||
<h4 id="orgaa28b92"><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_woodbury_2</span> (
|
||||
@ -810,8 +823,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org41c3b7a" class="outline-4">
|
||||
<h4 id="org41c3b7a"><span class="section-number-4">3.1.3</span> C source</h4>
|
||||
<div id="outline-container-orga76a2c4" class="outline-4">
|
||||
<h4 id="orga76a2c4"><span class="section-number-4">3.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -898,8 +911,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1e28a3c" class="outline-4">
|
||||
<h4 id="org1e28a3c"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org79c885b" class="outline-4">
|
||||
<h4 id="org79c885b"><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 most efficient when used in cases where there are only 2 rank-1 updates and
|
||||
@ -910,12 +923,12 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b49c7f" class="outline-2">
|
||||
<h2 id="org2b49c7f"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-org9d8922c" class="outline-2">
|
||||
<h2 id="org9d8922c"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org5b63207" class="outline-3">
|
||||
<h3 id="org5b63207"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3</code></h3>
|
||||
<div id="outline-container-org7517a41" class="outline-3">
|
||||
<h3 id="org7517a41"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
The 3x3 version of the Woodbury 2x2 kernel. It is used to apply three
|
||||
@ -936,7 +949,7 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
|
||||
<table id="org428c9dd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5c5c61e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1008,8 +1021,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf7f6368" class="outline-4">
|
||||
<h4 id="orgf7f6368"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org73ceabd" class="outline-4">
|
||||
<h4 id="org73ceabd"><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>
|
||||
@ -1023,8 +1036,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgda0f531" class="outline-4">
|
||||
<h4 id="orgda0f531"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div id="outline-container-org58a3ca4" class="outline-4">
|
||||
<h4 id="org58a3ca4"><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_woodbury_3</span> (
|
||||
@ -1041,8 +1054,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf1cf78" class="outline-4">
|
||||
<h4 id="orgbf1cf78"><span class="section-number-4">4.1.3</span> C source</h4>
|
||||
<div id="outline-container-org3ccbd03" class="outline-4">
|
||||
<h4 id="org3ccbd03"><span class="section-number-4">4.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-4-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1144,8 +1157,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc42a33e" class="outline-4">
|
||||
<h4 id="orgc42a33e"><span class="section-number-4">4.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org7f2b531" class="outline-4">
|
||||
<h4 id="org7f2b531"><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 most efficient when used in cases where there are only 3 rank-1 updates and
|
||||
@ -1156,12 +1169,12 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc1e157e" class="outline-2">
|
||||
<h2 id="orgc1e157e"><span class="section-number-2">5</span> Sherman-Morrison with update splitting</h2>
|
||||
<div id="outline-container-org6faa053" class="outline-2">
|
||||
<h2 id="org6faa053"><span class="section-number-2">5</span> Sherman-Morrison with update splitting</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-org0f32133" class="outline-3">
|
||||
<h3 id="org0f32133"><span class="section-number-3">5.1</span> <code>qmckl_sherman_morrison_splitting</code></h3>
|
||||
<div id="outline-container-orgcc49f83" class="outline-3">
|
||||
<h3 id="orgcc49f83"><span class="section-number-3">5.1</span> <code>qmckl_sherman_morrison_splitting</code></h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
<p>
|
||||
This is a variation on the 'Naive' Sherman-Morrison kernel. Whenever the denominator \(1+v_j^T S^{-1} u_j\) in
|
||||
@ -1183,7 +1196,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="org83f948a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org102a7d2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1267,8 +1280,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org60aae96" class="outline-4">
|
||||
<h4 id="org60aae96"><span class="section-number-4">5.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgcc403e9" class="outline-4">
|
||||
<h4 id="orgcc403e9"><span class="section-number-4">5.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1283,8 +1296,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org38a9f02" class="outline-4">
|
||||
<h4 id="org38a9f02"><span class="section-number-4">5.1.2</span> C header</h4>
|
||||
<div id="outline-container-org2f7269b" class="outline-4">
|
||||
<h4 id="org2f7269b"><span class="section-number-4">5.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-5-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_sherman_morrison_splitting</span> (
|
||||
@ -1302,8 +1315,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5061303" class="outline-4">
|
||||
<h4 id="org5061303"><span class="section-number-4">5.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgd19f088" class="outline-4">
|
||||
<h4 id="orgd19f088"><span class="section-number-4">5.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-5-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1343,8 +1356,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga62b992" class="outline-4">
|
||||
<h4 id="orga62b992"><span class="section-number-4">5.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org80494f1" class="outline-4">
|
||||
<h4 id="org80494f1"><span class="section-number-4">5.1.4</span> Performance…</h4>
|
||||
<div class="outline-text-4" id="text-5-1-4">
|
||||
<p>
|
||||
This kernel performs best when there are 2 or more rank-1 update cycles and fail-rate is high.
|
||||
@ -1354,12 +1367,12 @@ This kernel performs best when there are 2 or more rank-1 update cycles and fail
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org932a1c2" class="outline-2">
|
||||
<h2 id="org932a1c2"><span class="section-number-2">6</span> Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</h2>
|
||||
<div id="outline-container-org3a234c8" class="outline-2">
|
||||
<h2 id="org3a234c8"><span class="section-number-2">6</span> Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</h2>
|
||||
<div class="outline-text-2" id="text-6">
|
||||
</div>
|
||||
<div id="outline-container-orgd89b396" class="outline-3">
|
||||
<h3 id="orgd89b396"><span class="section-number-3">6.1</span> <code>qmckl_sherman_morrison_smw32s</code></h3>
|
||||
<div id="outline-container-org3a81b78" class="outline-3">
|
||||
<h3 id="org3a81b78"><span class="section-number-3">6.1</span> <code>qmckl_sherman_morrison_smw32s</code></h3>
|
||||
<div class="outline-text-3" id="text-6-1">
|
||||
<p>
|
||||
The Woodbury 3x3 and 2x2 kernel with Sherman-Morrison and update splitting combines the low-level Woodbury 3x3 kernel,
|
||||
@ -1374,7 +1387,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="org4bed16a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb20adc9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1454,8 +1467,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org9354dbb" class="outline-4">
|
||||
<h4 id="org9354dbb"><span class="section-number-4">6.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgfcee9a8" class="outline-4">
|
||||
<h4 id="orgfcee9a8"><span class="section-number-4">6.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-6-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1470,8 +1483,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org70eee96" class="outline-4">
|
||||
<h4 id="org70eee96"><span class="section-number-4">6.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgfd165ef" class="outline-4">
|
||||
<h4 id="orgfd165ef"><span class="section-number-4">6.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-6-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_sherman_morrison_smw32s</span> (
|
||||
@ -1489,8 +1502,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6b58b3b" class="outline-4">
|
||||
<h4 id="org6b58b3b"><span class="section-number-4">6.1.3</span> C source</h4>
|
||||
<div id="outline-container-org53d6b6c" class="outline-4">
|
||||
<h4 id="org53d6b6c"><span class="section-number-4">6.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-6-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1568,8 +1581,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0f2b271" class="outline-4">
|
||||
<h4 id="org0f2b271"><span class="section-number-4">6.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org89c948e" class="outline-4">
|
||||
<h4 id="org89c948e"><span class="section-number-4">6.1.4</span> Performance…</h4>
|
||||
<div class="outline-text-4" id="text-6-1-4">
|
||||
<p>
|
||||
This kernel performs best for update cycles with 2 or more rank-1 updates and the fail-rate is low.
|
||||
@ -1579,8 +1592,8 @@ This kernel performs best for update cycles with 2 or more rank-1 updates and th
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga773668" class="outline-2">
|
||||
<h2 id="orga773668"><span class="section-number-2">7</span> Helper Functions</h2>
|
||||
<div id="outline-container-org26bbe20" class="outline-2">
|
||||
<h2 id="org26bbe20"><span class="section-number-2">7</span> Helper Functions</h2>
|
||||
<div class="outline-text-2" id="text-7">
|
||||
<p>
|
||||
Private helper-functions that are used by the Sherman-Morrison-Woodbury kernels.
|
||||
@ -1588,8 +1601,8 @@ These functions can only be used internally by the kernels in this module.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc5cc755" class="outline-3">
|
||||
<h3 id="orgc5cc755"><span class="section-number-3">7.1</span> <code>qmckl_slagel_splitting</code></h3>
|
||||
<div id="outline-container-org5457cdd" class="outline-3">
|
||||
<h3 id="org5457cdd"><span class="section-number-3">7.1</span> <code>qmckl_slagel_splitting</code></h3>
|
||||
<div class="outline-text-3" id="text-7-1">
|
||||
<p>
|
||||
<code>qmckl_slagel_splitting</code> is the non-recursive, inner part of the 'Sherman-Morrison with update splitting'-kernel.
|
||||
@ -1609,7 +1622,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="org1d85cff" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org85a7be8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1703,8 +1716,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org88a719f" class="outline-4">
|
||||
<h4 id="org88a719f"><span class="section-number-4">7.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org81b5867" class="outline-4">
|
||||
<h4 id="org81b5867"><span class="section-number-4">7.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-7-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>LDS >= 2</code></li>
|
||||
@ -1721,8 +1734,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d48f00" class="outline-4">
|
||||
<h4 id="org0d48f00"><span class="section-number-4">7.1.2</span> C header</h4>
|
||||
<div id="outline-container-orge0b38ed" class="outline-4">
|
||||
<h4 id="orge0b38ed"><span class="section-number-4">7.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-7-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #0000ff;">qmckl_slagel_splitting</span> (
|
||||
@ -1742,8 +1755,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8990be5" class="outline-4">
|
||||
<h4 id="org8990be5"><span class="section-number-4">7.1.3</span> C source</h4>
|
||||
<div id="outline-container-org768eafc" class="outline-4">
|
||||
<h4 id="org768eafc"><span class="section-number-4">7.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-7-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1821,8 +1834,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4475ea6" class="outline-4">
|
||||
<h4 id="org4475ea6"><span class="section-number-4">7.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org41cbb2e" class="outline-4">
|
||||
<h4 id="org41cbb2e"><span class="section-number-4">7.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-7-1-4">
|
||||
<p>
|
||||
This function cannot be used by itself and is used in Sherman-Morrison with update splitting and Woodbury 3x3 and 2x2
|
||||
@ -1833,8 +1846,8 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1a068bd" class="outline-2">
|
||||
<h2 id="org1a068bd"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div id="outline-container-orgba829f2" class="outline-2">
|
||||
<h2 id="orgba829f2"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div class="outline-text-2" id="text-8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"> <span style="color: #0000ff;">assert</span> (<span style="color: #228b22;">qmckl_context_destroy</span>(<span style="color: #a0522d;">context</span>) == QMCKL_SUCCESS);
|
||||
@ -1848,7 +1861,7 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:27</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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>
|
||||
<!-- 2022-11-17 Thu 18:27 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<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>
|
||||
@ -160,6 +160,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -184,7 +197,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -233,27 +246,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org4918c2d">1. CHBrClF</a>
|
||||
<li><a href="#org98d3add">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#org4bb2bd4">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org753f892">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org48bd074">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org3eaa218">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org6eacb2c">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org193ed2a">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orgb4f53f4">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org3eb832b">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5f24cd3">2. N2</a>
|
||||
<li><a href="#org9595848">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#orgc68ef03">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org3d0edf0">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org218e88b">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#orgca4856d">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgbdf8087">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org33b7aad">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4918c2d" class="outline-2">
|
||||
<h2 id="org4918c2d"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org98d3add" class="outline-2">
|
||||
<h2 id="org98d3add"><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,
|
||||
@ -337,8 +350,8 @@ and with a high maximum angular momentum.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org4bb2bd4" class="outline-3">
|
||||
<h3 id="org4bb2bd4"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org6eacb2c" class="outline-3">
|
||||
<h3 id="org6eacb2c"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<pre class="example">
|
||||
5
|
||||
@ -368,8 +381,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org753f892" class="outline-3">
|
||||
<h3 id="org753f892"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org193ed2a" class="outline-3">
|
||||
<h3 id="org193ed2a"><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
|
||||
@ -1288,8 +1301,8 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org48bd074" class="outline-3">
|
||||
<h3 id="org48bd074"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-orgb4f53f4" class="outline-3">
|
||||
<h3 id="orgb4f53f4"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">chbrclf_mo_num</span> ((<span style="color: #228b22;">int64_t</span>) 224)
|
||||
@ -60213,8 +60226,8 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3eaa218" class="outline-3">
|
||||
<h3 id="org3eaa218"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org3eb832b" class="outline-3">
|
||||
<h3 id="org3eb832b"><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.
|
||||
@ -60373,8 +60386,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5f24cd3" class="outline-2">
|
||||
<h2 id="org5f24cd3"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-org9595848" class="outline-2">
|
||||
<h2 id="org9595848"><span class="section-number-2">2</span> N2</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
This test is mainly for the Jastrow factor and was supplied by
|
||||
@ -60415,8 +60428,8 @@ treated by pseudopotentials thus excluded from the actual calculation.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc68ef03" class="outline-3">
|
||||
<h3 id="orgc68ef03"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orgca4856d" class="outline-3">
|
||||
<h3 id="orgca4856d"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<pre class="example">
|
||||
2
|
||||
@ -60443,8 +60456,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3d0edf0" class="outline-3">
|
||||
<h3 id="org3d0edf0"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-orgbdf8087" class="outline-3">
|
||||
<h3 id="orgbdf8087"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
Electron coordinates are stored in atomic units in normal format.
|
||||
@ -60473,8 +60486,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org218e88b" class="outline-3">
|
||||
<h3 id="org218e88b"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-org33b7aad" class="outline-3">
|
||||
<h3 id="org33b7aad"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
This test is mainly for the Jastrow factor and was supplied by
|
||||
@ -60482,7 +60495,7 @@ Ramon Panades Baruetta.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Jastrow related </span>*/
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Jastrow related</span> */
|
||||
|
||||
<span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">n2_type_nucl_num</span> ((<span style="color: #228b22;">int64_t</span>) 1)
|
||||
<span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">n2_aord_num</span> ((<span style="color: #228b22;">int64_t</span>) 5)
|
||||
@ -60573,7 +60586,7 @@ Ramon Panades Baruetta.
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="date">Created: 2022-11-17 Thu 18:27</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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>
|
||||
<!-- 2022-11-17 Thu 18:27 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>TREXIO I/O library</title>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -311,53 +324,53 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgb0a03d6">1. Local functions</a>
|
||||
<li><a href="#orgd16c66e">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgd04ec7c">1.1. Open file</a></li>
|
||||
<li><a href="#org029a368">1.2. Electron</a></li>
|
||||
<li><a href="#org83badc3">1.3. Nucleus</a>
|
||||
<li><a href="#org4e135f5">1.1. Open file</a></li>
|
||||
<li><a href="#org62a9520">1.2. Electron</a></li>
|
||||
<li><a href="#org8bf5b28">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#orgceb6d24">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org9315706">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org30ecd6c">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#orgdc300e3">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org5caa7d4">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org9c6cee2">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5a6ae37">1.4. Basis set and AOs</a>
|
||||
<li><a href="#org0547576">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#orgb80a2b7">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orga31652d">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org4a76396">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orgdfeb0f4">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org2942181">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org9d7380b">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#orga189173">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#orgebb4f58">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org35a0dc3">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org2f3ab2f">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org161f424">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org950a90f">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#orgd187023">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org16da683">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#org8985703">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orgf727785">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#orgf4e7f22">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org9b4403e">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org2c3478d">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#orgff45b18">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#orga8b3a78">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#orgf2eccb5">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org6044216">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#orgf0aa24f">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org47f5b71">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org4116af6">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org0210803">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org805f474">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org08cc4ba">1.5. Molecular orbitals</a>
|
||||
<li><a href="#orgc02a88b">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#orgbf36aba">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orga87d04e">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#org6a79ba4">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org3a22e95">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7e122f2">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#orgf34fcdc">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd9d2da3">2. Read everything</a></li>
|
||||
<li><a href="#org0c431e5">3. Test</a>
|
||||
<li><a href="#org6159a05">2. Read everything</a></li>
|
||||
<li><a href="#orga0b6653">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#org7542d58">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org99d6c08">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org7e338ae">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org1df4403">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#org23e2adc">3.0.1. Electrons</a></li>
|
||||
<li><a href="#orgb61ba72">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org83b25c9">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#orge2f71d0">3.0.4. MO Basis</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -366,8 +379,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb0a03d6" class="outline-2">
|
||||
<h2 id="orgb0a03d6"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-orgd16c66e" class="outline-2">
|
||||
<h2 id="orgd16c66e"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Functions defined in this section are all local: they should not be
|
||||
@ -390,8 +403,8 @@ In the functions defined in this section, we use as local variables
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd04ec7c" class="outline-3">
|
||||
<h3 id="orgd04ec7c"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-org4e135f5" class="outline-3">
|
||||
<h3 id="org4e135f5"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
We first define a helper function to open a file by first trying to
|
||||
@ -420,7 +433,7 @@ groups of data by passing the <code>trexio_t</code> handle.
|
||||
<span style="color: #b22222;"> QMCKL_FAILURE,</span>
|
||||
<span style="color: #b22222;"> "trexio_read_electron_up_num",</span>
|
||||
<span style="color: #b22222;"> trexio_string_of_error(rcio));</span>
|
||||
<span style="color: #b22222;"> </span>*/
|
||||
*/
|
||||
<span style="color: #a020f0;">return</span> <span style="color: #008b8b;">NULL</span>;
|
||||
}
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
@ -429,8 +442,8 @@ groups of data by passing the <code>trexio_t</code> handle.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org029a368" class="outline-3">
|
||||
<h3 id="org029a368"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org62a9520" class="outline-3">
|
||||
<h3 id="org62a9520"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
In this section we read all the data into the electron data structure.
|
||||
@ -481,8 +494,8 @@ We read the number of up-spin and down-spin electrons.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org83badc3" class="outline-3">
|
||||
<h3 id="org83badc3"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-org8bf5b28" class="outline-3">
|
||||
<h3 id="org8bf5b28"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
In this section we read the number of nuclei, the molecular geometry and nuclear charges.
|
||||
@ -502,8 +515,8 @@ In this section we read the number of nuclei, the molecular geometry and nuclear
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgceb6d24" class="outline-4">
|
||||
<h4 id="orgceb6d24"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-orgdc300e3" class="outline-4">
|
||||
<h4 id="orgdc300e3"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div class="outline-text-4" id="text-1-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nucleus_num</span> = 0L;
|
||||
@ -526,8 +539,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9315706" class="outline-4">
|
||||
<h4 id="org9315706"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-org5caa7d4" class="outline-4">
|
||||
<h4 id="org5caa7d4"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div class="outline-text-4" id="text-1-3-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -567,8 +580,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org30ecd6c" class="outline-4">
|
||||
<h4 id="org30ecd6c"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-org9c6cee2" class="outline-4">
|
||||
<h4 id="org9c6cee2"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-3-3">
|
||||
<p>
|
||||
Now, we read the molecular geometry. It is stored in normal format
|
||||
@ -623,8 +636,8 @@ in the TREXIO file (<code>'N'</code>), so it will be automatically transposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5a6ae37" class="outline-3">
|
||||
<h3 id="org5a6ae37"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-org0547576" class="outline-3">
|
||||
<h3 id="org0547576"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
In this section we read the atomic basis set and atomic orbitals.
|
||||
@ -650,8 +663,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb80a2b7" class="outline-4">
|
||||
<h4 id="orgb80a2b7"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-org8985703" class="outline-4">
|
||||
<h4 id="org8985703"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div class="outline-text-4" id="text-1-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">MAX_STR_LEN</span> 1024
|
||||
@ -682,8 +695,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga31652d" class="outline-4">
|
||||
<h4 id="orga31652d"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-orgf727785" class="outline-4">
|
||||
<h4 id="orgf727785"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div class="outline-text-4" id="text-1-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">shell_num</span> = 0L;
|
||||
@ -707,8 +720,8 @@ rc = qmckl_set_ao_basis_shell_num(context, shell_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4a76396" class="outline-4">
|
||||
<h4 id="org4a76396"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-orgf4e7f22" class="outline-4">
|
||||
<h4 id="orgf4e7f22"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div class="outline-text-4" id="text-1-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">prim_num</span> = 0L;
|
||||
@ -732,8 +745,8 @@ rc = qmckl_set_ao_basis_prim_num(context, prim_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdfeb0f4" class="outline-4">
|
||||
<h4 id="orgdfeb0f4"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-org9b4403e" class="outline-4">
|
||||
<h4 id="org9b4403e"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div class="outline-text-4" id="text-1-4-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ao_num</span> = 0LL;
|
||||
@ -757,14 +770,14 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2942181" class="outline-4">
|
||||
<h4 id="org2942181"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-org2c3478d" class="outline-4">
|
||||
<h4 id="org2c3478d"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div class="outline-text-4" id="text-1-4-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
<span style="color: #228b22;">qmckl_memory_info_struct</span> <span style="color: #a0522d;">mem_info</span> = qmckl_memory_info_struct_zero;
|
||||
|
||||
/* <span style="color: #b22222;">Allocate array for data </span>*/
|
||||
/* <span style="color: #b22222;">Allocate array for data</span> */
|
||||
mem_info.size = nucleus_num * <span style="color: #a020f0;">sizeof</span>(int64_t);
|
||||
<span style="color: #228b22;">int64_t</span>* <span style="color: #a0522d;">nucleus_index</span> = (<span style="color: #228b22;">int64_t</span>*) qmckl_malloc(context, mem_info);
|
||||
|
||||
@ -777,7 +790,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
|
||||
assert (nucleus_index != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Allocate temporary array </span>*/
|
||||
/* <span style="color: #b22222;">Allocate temporary array</span> */
|
||||
mem_info.size = shell_num * <span style="color: #a020f0;">sizeof</span>(int64_t);
|
||||
<span style="color: #228b22;">int64_t</span>* <span style="color: #a0522d;">tmp_array</span> = (<span style="color: #228b22;">int64_t</span>*) qmckl_malloc(context, mem_info);
|
||||
|
||||
@ -792,7 +805,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
|
||||
assert (tmp_array != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Read in the temporary array </span>*/
|
||||
/* <span style="color: #b22222;">Read in the temporary array</span> */
|
||||
rcio = trexio_read_safe_basis_nucleus_index_64(file, tmp_array, shell_num);
|
||||
<span style="color: #a020f0;">if</span> (rcio != TREXIO_SUCCESS) {
|
||||
qmckl_free(context, tmp_array);
|
||||
@ -805,7 +818,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
trexio_string_of_error(rcio));
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Reformat data </span>*/
|
||||
/* <span style="color: #b22222;">Reformat data</span> */
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int</span> <span style="color: #a0522d;">i</span>=shell_num-1 ; i>=0 ; --i) {
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int</span> <span style="color: #a0522d;">k</span> = tmp_array[i];
|
||||
<span style="color: #a020f0;">if</span> (k < 0 || k >= nucleus_num) {
|
||||
@ -824,7 +837,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
qmckl_free(context, tmp_array);
|
||||
tmp_array = <span style="color: #008b8b;">NULL</span>;
|
||||
|
||||
/* <span style="color: #b22222;">Store data </span>*/
|
||||
/* <span style="color: #b22222;">Store data</span> */
|
||||
rc = qmckl_set_ao_basis_nucleus_index(context, nucleus_index, shell_num);
|
||||
|
||||
qmckl_free(context, nucleus_index);
|
||||
@ -838,14 +851,14 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9d7380b" class="outline-4">
|
||||
<h4 id="org9d7380b"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-orgff45b18" class="outline-4">
|
||||
<h4 id="orgff45b18"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div class="outline-text-4" id="text-1-4-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
<span style="color: #228b22;">qmckl_memory_info_struct</span> <span style="color: #a0522d;">mem_info</span> = qmckl_memory_info_struct_zero;
|
||||
|
||||
/* <span style="color: #b22222;">Allocate array for data </span>*/
|
||||
/* <span style="color: #b22222;">Allocate array for data</span> */
|
||||
mem_info.size = nucleus_num * <span style="color: #a020f0;">sizeof</span>(int64_t);
|
||||
<span style="color: #228b22;">int64_t</span>* <span style="color: #a0522d;">nucleus_shell_num</span> = (<span style="color: #228b22;">int64_t</span>*) qmckl_malloc(context, mem_info);
|
||||
|
||||
@ -858,7 +871,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
|
||||
assert (nucleus_shell_num != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Allocate temporary array </span>*/
|
||||
/* <span style="color: #b22222;">Allocate temporary array</span> */
|
||||
mem_info.size = shell_num * <span style="color: #a020f0;">sizeof</span>(int64_t);
|
||||
<span style="color: #228b22;">int64_t</span>* <span style="color: #a0522d;">tmp_array</span> = (<span style="color: #228b22;">int64_t</span>*) qmckl_malloc(context, mem_info);
|
||||
|
||||
@ -874,7 +887,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
assert (tmp_array != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
|
||||
/* <span style="color: #b22222;">Read in the temporary array </span>*/
|
||||
/* <span style="color: #b22222;">Read in the temporary array</span> */
|
||||
rcio = trexio_read_safe_basis_nucleus_index_64(file, tmp_array, shell_num);
|
||||
<span style="color: #a020f0;">if</span> (rcio != TREXIO_SUCCESS) {
|
||||
qmckl_free(context, tmp_array);
|
||||
@ -887,7 +900,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
trexio_string_of_error(rcio));
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Reformat data </span>*/
|
||||
/* <span style="color: #b22222;">Reformat data</span> */
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int</span> <span style="color: #a0522d;">i</span>=0 ; i<nucleus_num ; ++i) {
|
||||
nucleus_shell_num[i] = 0;
|
||||
}
|
||||
@ -910,7 +923,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
qmckl_free(context, tmp_array);
|
||||
tmp_array = <span style="color: #008b8b;">NULL</span>;
|
||||
|
||||
/* <span style="color: #b22222;">Store data </span>*/
|
||||
/* <span style="color: #b22222;">Store data</span> */
|
||||
rc = qmckl_set_ao_basis_nucleus_shell_num(context, nucleus_shell_num, shell_num);
|
||||
|
||||
qmckl_free(context, nucleus_shell_num);
|
||||
@ -924,14 +937,14 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga189173" class="outline-4">
|
||||
<h4 id="orga189173"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-orga8b3a78" class="outline-4">
|
||||
<h4 id="orga8b3a78"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div class="outline-text-4" id="text-1-4-7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
<span style="color: #228b22;">qmckl_memory_info_struct</span> <span style="color: #a0522d;">mem_info</span> = qmckl_memory_info_struct_zero;
|
||||
|
||||
/* <span style="color: #b22222;">Allocate array for data </span>*/
|
||||
/* <span style="color: #b22222;">Allocate array for data</span> */
|
||||
mem_info.size = shell_num * <span style="color: #a020f0;">sizeof</span>(int32_t);
|
||||
|
||||
<span style="color: #228b22;">int32_t</span>* <span style="color: #a0522d;">shell_ang_mom</span> = (<span style="color: #228b22;">int32_t</span>*) qmckl_malloc(context, mem_info);
|
||||
@ -945,7 +958,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
|
||||
assert (shell_ang_mom != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Read data </span>*/
|
||||
/* <span style="color: #b22222;">Read data</span> */
|
||||
rcio = trexio_read_safe_basis_shell_ang_mom_32(file, shell_ang_mom, shell_num);
|
||||
<span style="color: #a020f0;">if</span> (rcio != TREXIO_SUCCESS) {
|
||||
qmckl_free(context, shell_ang_mom);
|
||||
@ -956,7 +969,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
trexio_string_of_error(rcio));
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Store data </span>*/
|
||||
/* <span style="color: #b22222;">Store data</span> */
|
||||
rc = qmckl_set_ao_basis_shell_ang_mom(context, shell_ang_mom, shell_num);
|
||||
|
||||
qmckl_free(context, shell_ang_mom);
|
||||
@ -970,14 +983,14 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgebb4f58" class="outline-4">
|
||||
<h4 id="orgebb4f58"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-orgf2eccb5" class="outline-4">
|
||||
<h4 id="orgf2eccb5"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div class="outline-text-4" id="text-1-4-8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
<span style="color: #228b22;">qmckl_memory_info_struct</span> <span style="color: #a0522d;">mem_info</span> = qmckl_memory_info_struct_zero;
|
||||
|
||||
/* <span style="color: #b22222;">Allocate array for data </span>*/
|
||||
/* <span style="color: #b22222;">Allocate array for data</span> */
|
||||
mem_info.size = shell_num * <span style="color: #a020f0;">sizeof</span>(int64_t);
|
||||
|
||||
<span style="color: #228b22;">int64_t</span>* <span style="color: #a0522d;">shell_prim_num</span> = (<span style="color: #228b22;">int64_t</span>*) qmckl_malloc(context, mem_info);
|
||||
@ -991,7 +1004,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
|
||||
assert (shell_prim_num != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Allocate temporary array </span>*/
|
||||
/* <span style="color: #b22222;">Allocate temporary array</span> */
|
||||
mem_info.size = prim_num * <span style="color: #a020f0;">sizeof</span>(int64_t);
|
||||
|
||||
<span style="color: #228b22;">int64_t</span>* <span style="color: #a0522d;">tmp_array</span> = (<span style="color: #228b22;">int64_t</span>*) qmckl_malloc(context, mem_info);
|
||||
@ -1007,7 +1020,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
|
||||
assert (tmp_array != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Read data </span>*/
|
||||
/* <span style="color: #b22222;">Read data</span> */
|
||||
rcio = trexio_read_safe_basis_shell_index_64 (file, tmp_array, prim_num);
|
||||
<span style="color: #a020f0;">if</span> (rcio != TREXIO_SUCCESS) {
|
||||
qmckl_free(context, shell_prim_num);
|
||||
@ -1020,7 +1033,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
trexio_string_of_error(rcio));
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Reformat data </span>*/
|
||||
/* <span style="color: #b22222;">Reformat data</span> */
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int</span> <span style="color: #a0522d;">i</span>=0 ; i<shell_num ; ++i) {
|
||||
shell_prim_num[i] = 0;
|
||||
}
|
||||
@ -1041,7 +1054,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
qmckl_free(context, tmp_array);
|
||||
tmp_array = <span style="color: #008b8b;">NULL</span>;
|
||||
|
||||
/* <span style="color: #b22222;">Store data </span>*/
|
||||
/* <span style="color: #b22222;">Store data</span> */
|
||||
rc = qmckl_set_ao_basis_shell_prim_num(context, shell_prim_num, shell_num);
|
||||
|
||||
qmckl_free(context, shell_prim_num);
|
||||
@ -1055,14 +1068,14 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org35a0dc3" class="outline-4">
|
||||
<h4 id="org35a0dc3"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-org6044216" class="outline-4">
|
||||
<h4 id="org6044216"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div class="outline-text-4" id="text-1-4-9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
<span style="color: #228b22;">qmckl_memory_info_struct</span> <span style="color: #a0522d;">mem_info</span> = qmckl_memory_info_struct_zero;
|
||||
|
||||
/* <span style="color: #b22222;">Allocate array for data </span>*/
|
||||
/* <span style="color: #b22222;">Allocate array for data</span> */
|
||||
mem_info.size = shell_num * <span style="color: #a020f0;">sizeof</span>(int64_t);
|
||||
|
||||
<span style="color: #228b22;">int64_t</span>* <span style="color: #a0522d;">shell_prim_index</span> = (<span style="color: #228b22;">int64_t</span>*) qmckl_malloc(context, mem_info);
|
||||
@ -1076,7 +1089,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
|
||||
assert (shell_prim_index != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Allocate temporary array </span>*/
|
||||
/* <span style="color: #b22222;">Allocate temporary array</span> */
|
||||
mem_info.size = prim_num * <span style="color: #a020f0;">sizeof</span>(int64_t);
|
||||
|
||||
<span style="color: #228b22;">int64_t</span>* <span style="color: #a0522d;">tmp_array</span> = (<span style="color: #228b22;">int64_t</span>*) qmckl_malloc(context, mem_info);
|
||||
@ -1090,7 +1103,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
|
||||
assert (tmp_array != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Read data </span>*/
|
||||
/* <span style="color: #b22222;">Read data</span> */
|
||||
rcio = trexio_read_safe_basis_shell_index_64(file, tmp_array, prim_num);
|
||||
<span style="color: #a020f0;">if</span> (rcio != TREXIO_SUCCESS) {
|
||||
qmckl_free(context, shell_prim_index);
|
||||
@ -1103,7 +1116,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
trexio_string_of_error(rcio));
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Reformat data </span>*/
|
||||
/* <span style="color: #b22222;">Reformat data</span> */
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int</span> <span style="color: #a0522d;">i</span>=prim_num-1 ; i>=0 ; --i) {
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int</span> <span style="color: #a0522d;">k</span> = tmp_array[i];
|
||||
<span style="color: #a020f0;">if</span> (k < 0 || k >= shell_num) {
|
||||
@ -1122,7 +1135,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
qmckl_free(context, tmp_array);
|
||||
tmp_array = <span style="color: #008b8b;">NULL</span>;
|
||||
|
||||
/* <span style="color: #b22222;">Store data </span>*/
|
||||
/* <span style="color: #b22222;">Store data</span> */
|
||||
rc = qmckl_set_ao_basis_shell_prim_index(context, shell_prim_index, shell_num);
|
||||
|
||||
qmckl_free(context, shell_prim_index);
|
||||
@ -1136,14 +1149,14 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2f3ab2f" class="outline-4">
|
||||
<h4 id="org2f3ab2f"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-orgf0aa24f" class="outline-4">
|
||||
<h4 id="orgf0aa24f"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div class="outline-text-4" id="text-1-4-10">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
<span style="color: #228b22;">qmckl_memory_info_struct</span> <span style="color: #a0522d;">mem_info</span> = qmckl_memory_info_struct_zero;
|
||||
|
||||
/* <span style="color: #b22222;">Allocate array for data </span>*/
|
||||
/* <span style="color: #b22222;">Allocate array for data</span> */
|
||||
mem_info.size = shell_num * <span style="color: #a020f0;">sizeof</span>(<span style="color: #228b22;">double</span>);
|
||||
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a0522d;">shell_factor</span> = (<span style="color: #228b22;">double</span>*) qmckl_malloc(context, mem_info);
|
||||
@ -1157,7 +1170,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
|
||||
assert (shell_factor != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Read data </span>*/
|
||||
/* <span style="color: #b22222;">Read data</span> */
|
||||
rcio = trexio_read_safe_basis_shell_factor_64(file, shell_factor, shell_num);
|
||||
<span style="color: #a020f0;">if</span> (rcio != TREXIO_SUCCESS) {
|
||||
qmckl_free(context, shell_factor);
|
||||
@ -1168,7 +1181,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
trexio_string_of_error(rcio));
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Store data </span>*/
|
||||
/* <span style="color: #b22222;">Store data</span> */
|
||||
rc = qmckl_set_ao_basis_shell_factor(context, shell_factor, shell_num);
|
||||
|
||||
qmckl_free(context, shell_factor);
|
||||
@ -1182,14 +1195,14 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org161f424" class="outline-4">
|
||||
<h4 id="org161f424"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-org47f5b71" class="outline-4">
|
||||
<h4 id="org47f5b71"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div class="outline-text-4" id="text-1-4-11">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
<span style="color: #228b22;">qmckl_memory_info_struct</span> <span style="color: #a0522d;">mem_info</span> = qmckl_memory_info_struct_zero;
|
||||
|
||||
/* <span style="color: #b22222;">Allocate array for data </span>*/
|
||||
/* <span style="color: #b22222;">Allocate array for data</span> */
|
||||
mem_info.size = prim_num * <span style="color: #a020f0;">sizeof</span>(<span style="color: #228b22;">double</span>);
|
||||
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a0522d;">exponent</span> = (<span style="color: #228b22;">double</span>*) qmckl_malloc(context, mem_info);
|
||||
@ -1203,7 +1216,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
|
||||
assert (exponent != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Read data </span>*/
|
||||
/* <span style="color: #b22222;">Read data</span> */
|
||||
rcio = trexio_read_safe_basis_exponent_64(file, exponent, prim_num);
|
||||
<span style="color: #a020f0;">if</span> (rcio != TREXIO_SUCCESS) {
|
||||
qmckl_free(context, exponent);
|
||||
@ -1214,7 +1227,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
trexio_string_of_error(rcio));
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Store data </span>*/
|
||||
/* <span style="color: #b22222;">Store data</span> */
|
||||
rc = qmckl_set_ao_basis_exponent(context, exponent, prim_num);
|
||||
|
||||
qmckl_free(context, exponent);
|
||||
@ -1228,14 +1241,14 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org950a90f" class="outline-4">
|
||||
<h4 id="org950a90f"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-org4116af6" class="outline-4">
|
||||
<h4 id="org4116af6"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div class="outline-text-4" id="text-1-4-12">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
<span style="color: #228b22;">qmckl_memory_info_struct</span> <span style="color: #a0522d;">mem_info</span> = qmckl_memory_info_struct_zero;
|
||||
|
||||
/* <span style="color: #b22222;">Allocate array for data </span>*/
|
||||
/* <span style="color: #b22222;">Allocate array for data</span> */
|
||||
mem_info.size = prim_num * <span style="color: #a020f0;">sizeof</span>(<span style="color: #228b22;">double</span>);
|
||||
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a0522d;">coefficient</span> = (<span style="color: #228b22;">double</span>*) qmckl_malloc(context, mem_info);
|
||||
@ -1249,7 +1262,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
|
||||
assert (coefficient != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Read data </span>*/
|
||||
/* <span style="color: #b22222;">Read data</span> */
|
||||
rcio = trexio_read_safe_basis_coefficient_64(file, coefficient, prim_num);
|
||||
<span style="color: #a020f0;">if</span> (rcio != TREXIO_SUCCESS) {
|
||||
qmckl_free(context, coefficient);
|
||||
@ -1260,7 +1273,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
trexio_string_of_error(rcio));
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Store data </span>*/
|
||||
/* <span style="color: #b22222;">Store data</span> */
|
||||
rc = qmckl_set_ao_basis_coefficient(context, coefficient, prim_num);
|
||||
|
||||
qmckl_free(context, coefficient);
|
||||
@ -1274,14 +1287,14 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd187023" class="outline-4">
|
||||
<h4 id="orgd187023"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-org0210803" class="outline-4">
|
||||
<h4 id="org0210803"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div class="outline-text-4" id="text-1-4-13">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
<span style="color: #228b22;">qmckl_memory_info_struct</span> <span style="color: #a0522d;">mem_info</span> = qmckl_memory_info_struct_zero;
|
||||
|
||||
/* <span style="color: #b22222;">Allocate array for data </span>*/
|
||||
/* <span style="color: #b22222;">Allocate array for data</span> */
|
||||
mem_info.size = prim_num * <span style="color: #a020f0;">sizeof</span>(<span style="color: #228b22;">double</span>);
|
||||
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a0522d;">prim_factor</span> = (<span style="color: #228b22;">double</span>*) qmckl_malloc(context, mem_info);
|
||||
@ -1295,7 +1308,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
|
||||
assert (prim_factor != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Read data </span>*/
|
||||
/* <span style="color: #b22222;">Read data</span> */
|
||||
rcio = trexio_read_safe_basis_prim_factor_64(file, prim_factor, prim_num);
|
||||
<span style="color: #a020f0;">if</span> (rcio != TREXIO_SUCCESS) {
|
||||
qmckl_free(context, prim_factor);
|
||||
@ -1306,7 +1319,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
trexio_string_of_error(rcio));
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Read data </span>*/
|
||||
/* <span style="color: #b22222;">Read data</span> */
|
||||
rc = qmckl_set_ao_basis_prim_factor(context, prim_factor, prim_num);
|
||||
|
||||
qmckl_free(context, prim_factor);
|
||||
@ -1320,14 +1333,14 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org16da683" class="outline-4">
|
||||
<h4 id="org16da683"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-org805f474" class="outline-4">
|
||||
<h4 id="org805f474"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div class="outline-text-4" id="text-1-4-14">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
<span style="color: #228b22;">qmckl_memory_info_struct</span> <span style="color: #a0522d;">mem_info</span> = qmckl_memory_info_struct_zero;
|
||||
|
||||
/* <span style="color: #b22222;">Allocate array for data </span>*/
|
||||
/* <span style="color: #b22222;">Allocate array for data</span> */
|
||||
mem_info.size = ao_num * <span style="color: #a020f0;">sizeof</span>(<span style="color: #228b22;">double</span>);
|
||||
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a0522d;">ao_normalization</span> = (<span style="color: #228b22;">double</span>*) qmckl_malloc(context, mem_info);
|
||||
@ -1341,7 +1354,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
|
||||
assert (ao_normalization != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Read data </span>*/
|
||||
/* <span style="color: #b22222;">Read data</span> */
|
||||
rcio = trexio_read_safe_ao_normalization_64(file, ao_normalization, ao_num);
|
||||
<span style="color: #a020f0;">if</span> (rcio != TREXIO_SUCCESS) {
|
||||
qmckl_free(context, ao_normalization);
|
||||
@ -1352,7 +1365,7 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
trexio_string_of_error(rcio));
|
||||
}
|
||||
|
||||
/* <span style="color: #b22222;">Store data </span>*/
|
||||
/* <span style="color: #b22222;">Store data</span> */
|
||||
rc = qmckl_set_ao_basis_ao_factor(context, ao_normalization, ao_num);
|
||||
|
||||
qmckl_free(context, ao_normalization);
|
||||
@ -1376,8 +1389,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org08cc4ba" class="outline-3">
|
||||
<h3 id="org08cc4ba"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-orgc02a88b" class="outline-3">
|
||||
<h3 id="orgc02a88b"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
In this section we read the MO coefficients.
|
||||
@ -1403,8 +1416,8 @@ In this section we read the MO coefficients.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf36aba" class="outline-4">
|
||||
<h4 id="orgbf36aba"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-org6a79ba4" class="outline-4">
|
||||
<h4 id="org6a79ba4"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div class="outline-text-4" id="text-1-5-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">mo_num</span> = 0L;
|
||||
@ -1427,8 +1440,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga87d04e" class="outline-4">
|
||||
<h4 id="orga87d04e"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-org3a22e95" class="outline-4">
|
||||
<h4 id="org3a22e95"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div class="outline-text-4" id="text-1-5-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1477,12 +1490,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7e122f2" class="outline-3">
|
||||
<h3 id="org7e122f2"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-orgf34fcdc" class="outline-3">
|
||||
<h3 id="orgf34fcdc"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgd9d2da3" class="outline-2">
|
||||
<h2 id="orgd9d2da3"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-org6159a05" class="outline-2">
|
||||
<h2 id="org6159a05"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1557,8 +1570,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0c431e5" class="outline-2">
|
||||
<h2 id="org0c431e5"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-orga0b6653" class="outline-2">
|
||||
<h2 id="orga0b6653"><span class="section-number-2">3</span> Test</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_TREXIO
|
||||
@ -1582,8 +1595,8 @@ rc = qmckl_trexio_read(context, filename, 255);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7542d58" class="outline-4">
|
||||
<h4 id="org7542d58"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-org23e2adc" class="outline-4">
|
||||
<h4 id="org23e2adc"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div class="outline-text-4" id="text-3-0-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Electrons\n"</span>);
|
||||
@ -1601,8 +1614,8 @@ rc = qmckl_get_electron_down_num(context, &dn_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org99d6c08" class="outline-4">
|
||||
<h4 id="org99d6c08"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-orgb61ba72" class="outline-4">
|
||||
<h4 id="orgb61ba72"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div class="outline-text-4" id="text-3-0-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Nuclei\n"</span>);
|
||||
@ -1642,8 +1655,8 @@ coord = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7e338ae" class="outline-4">
|
||||
<h4 id="org7e338ae"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-org83b25c9" class="outline-4">
|
||||
<h4 id="org83b25c9"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div class="outline-text-4" id="text-3-0-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Atomic basis\n"</span>);
|
||||
@ -1751,8 +1764,8 @@ prim_factor = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1df4403" class="outline-4">
|
||||
<h4 id="org1df4403"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-orge2f71d0" class="outline-4">
|
||||
<h4 id="orge2f71d0"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div class="outline-text-4" id="text-3-0-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"MOs\n"</span>);
|
||||
@ -1783,7 +1796,7 @@ charge = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:27</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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>
|
||||
<!-- 2022-11-17 Thu 18:27 -->
|
||||
<!-- 2022-11-18 Fri 13:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Verificarlo CI</title>
|
||||
@ -161,6 +161,19 @@
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
@ -190,7 +203,7 @@
|
||||
* @licstart The following is the entire license notice for the
|
||||
* JavaScript code in org-info.js.
|
||||
*
|
||||
* Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
*
|
||||
*
|
||||
* The JavaScript code in this tag is free software: you can
|
||||
@ -219,7 +232,7 @@
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -258,7 +271,7 @@ org_html_manager.setup(); // activate after the parameters are set
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2019 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
@ -311,22 +324,22 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org15e2dd6">1. Verificarlo probes</a>
|
||||
<li><a href="#org9bbbc7e">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#orga8a404f">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgd5c2b83">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org1247dcb">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orgf5ef246">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#orgde73367">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org17a6010">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org7b38da2">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org1070a23">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org74fe2a3">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#orgeda8252">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgffa769c">2. Fortran wrappers</a></li>
|
||||
<li><a href="#orgffefc0d">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org15e2dd6" class="outline-2">
|
||||
<h2 id="org15e2dd6"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-org9bbbc7e" class="outline-2">
|
||||
<h2 id="org9bbbc7e"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
This file contains utility functions to enable the Verificarlo
|
||||
@ -377,8 +390,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orga8a404f" class="outline-3">
|
||||
<h3 id="orga8a404f"><span class="section-number-3">1.1</span> Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div id="outline-container-org17a6010" class="outline-3">
|
||||
<h3 id="org17a6010"><span class="section-number-3">1.1</span> Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">void</span> <span style="color: #0000ff;">qmckl_init_probes</span>();
|
||||
@ -396,8 +409,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd5c2b83" class="outline-3">
|
||||
<h3 id="orgd5c2b83"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-org7b38da2" class="outline-3">
|
||||
<h3 id="org7b38da2"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a standard probe</li>
|
||||
@ -432,8 +445,8 @@ if <code>VFC_CI</code> is undefined, return <code>false</code> (no error)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1247dcb" class="outline-3">
|
||||
<h3 id="org1247dcb"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-org1070a23" class="outline-3">
|
||||
<h3 id="org1070a23"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a probe with an absolute check</li>
|
||||
@ -473,8 +486,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf5ef246" class="outline-3">
|
||||
<h3 id="orgf5ef246"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-org74fe2a3" class="outline-3">
|
||||
<h3 id="org74fe2a3"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a probe with a relative check</li>
|
||||
@ -514,8 +527,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgde73367" class="outline-3">
|
||||
<h3 id="orgde73367"><span class="section-number-3">1.5</span> Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div id="outline-container-orgeda8252" class="outline-3">
|
||||
<h3 id="orgeda8252"><span class="section-number-3">1.5</span> Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">void</span> <span style="color: #0000ff;">qmckl_dump_probes</span>();
|
||||
@ -534,8 +547,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgffa769c" class="outline-2">
|
||||
<h2 id="orgffa769c"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-orgffefc0d" class="outline-2">
|
||||
<h2 id="orgffefc0d"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">bool</span> <span style="color: #0000ff;">qmckl_probe_f</span>(
|
||||
@ -659,7 +672,7 @@ and accuracy
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:27</p>
|
||||
<p class="date">Created: 2022-11-18 Fri 13:16</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