Skip to content

Commit 488dd05

Browse files
authored
Merge pull request #12 from MikeHeiber/development
v2.0-beta.3 Development
2 parents 47ba1b8 + 472de14 commit 488dd05

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+257
-204
lines changed

Doxyfile

Lines changed: 47 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Doxyfile 1.8.13
1+
# Doxyfile 1.8.14
22

33
# This file describes the settings to be used by the documentation system
44
# doxygen (www.doxygen.org) for a project.
@@ -20,8 +20,8 @@
2020
# This tag specifies the encoding used for all characters in the config file
2121
# that follow. The default is UTF-8 which is also the encoding used for all text
2222
# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv
23-
# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv
24-
# for the list of possible encodings.
23+
# built into libc) for the transcoding. See
24+
# https://www.gnu.org/software/libiconv/ for the list of possible encodings.
2525
# The default value is: UTF-8.
2626

2727
DOXYFILE_ENCODING = UTF-8
@@ -38,7 +38,7 @@ PROJECT_NAME = KMC_Lattice
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = v2.0-beta.2
41+
PROJECT_NUMBER = v2.0-beta.3
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a
@@ -337,7 +337,7 @@ BUILTIN_STL_SUPPORT = NO
337337
CPP_CLI_SUPPORT = NO
338338

339339
# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:
340-
# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen
340+
# https://www.riverbankcomputing.com/software/sip/intro) sources only. Doxygen
341341
# will parse them like normal C++ but will assume all classes use public instead
342342
# of private inheritance when no explicit protection keyword is present.
343343
# The default value is: NO.
@@ -708,7 +708,7 @@ LAYOUT_FILE =
708708
# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
709709
# the reference definitions. This must be a list of .bib files. The .bib
710710
# extension is automatically appended if omitted. This requires the bibtex tool
711-
# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info.
711+
# to be installed. See also https://en.wikipedia.org/wiki/BibTeX for more info.
712712
# For LaTeX the style of the bibliography can be controlled using
713713
# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the
714714
# search path. See also \cite for info how to create references.
@@ -795,7 +795,7 @@ INPUT = Z:\Software_Projects\Local\KMC_Lattice\
795795
# This tag can be used to specify the character encoding of the source files
796796
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
797797
# libiconv (or the iconv built into libc) for the transcoding. See the libiconv
798-
# documentation (see: http://www.gnu.org/software/libiconv) for the list of
798+
# documentation (see: https://www.gnu.org/software/libiconv/) for the list of
799799
# possible encodings.
800800
# The default value is: UTF-8.
801801

@@ -1043,7 +1043,7 @@ SOURCE_TOOLTIPS = YES
10431043
# If the USE_HTAGS tag is set to YES then the references to source code will
10441044
# point to the HTML generated by the htags(1) tool instead of doxygen built-in
10451045
# source browser. The htags tool is part of GNU's global source tagging system
1046-
# (see http://www.gnu.org/software/global/global.html). You will need version
1046+
# (see https://www.gnu.org/software/global/global.html). You will need version
10471047
# 4.8.6 or higher.
10481048
#
10491049
# To use it do the following:
@@ -1089,6 +1089,17 @@ CLANG_ASSISTED_PARSING = NO
10891089

10901090
CLANG_OPTIONS =
10911091

1092+
# If clang assisted parsing is enabled you can provide the clang parser with the
1093+
# path to the compilation database (see:
1094+
# http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html) used when the files
1095+
# were built. This is equivalent to specifying the "-p" option to a clang tool,
1096+
# such as clang-check. These options will then be pased to the parser.
1097+
# Note: The availability of this option depends on whether or not doxygen was
1098+
# generated with the -Duse-libclang=ON option for CMake.
1099+
# The default value is: 0.
1100+
1101+
CLANG_COMPILATION_DATABASE_PATH= 0
1102+
10921103
#---------------------------------------------------------------------------
10931104
# Configuration options related to the alphabetical class index
10941105
#---------------------------------------------------------------------------
@@ -1207,7 +1218,7 @@ HTML_EXTRA_FILES =
12071218
# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
12081219
# will adjust the colors in the style sheet and background images according to
12091220
# this color. Hue is specified as an angle on a colorwheel, see
1210-
# http://en.wikipedia.org/wiki/Hue for more information. For instance the value
1221+
# https://en.wikipedia.org/wiki/Hue for more information. For instance the value
12111222
# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300
12121223
# purple, and 360 is red again.
12131224
# Minimum value: 0, maximum value: 359, default value: 220.
@@ -1243,6 +1254,17 @@ HTML_COLORSTYLE_GAMMA = 80
12431254

12441255
HTML_TIMESTAMP = NO
12451256

1257+
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
1258+
# documentation will contain a main index with vertical navigation menus that
1259+
# are dynamically created via Javascript. If disabled, the navigation index will
1260+
# consists of multiple levels of tabs that are statically embedded in every HTML
1261+
# page. Disable this option to support browsers that do not have Javascript,
1262+
# like the Qt help browser.
1263+
# The default value is: YES.
1264+
# This tag requires that the tag GENERATE_HTML is set to YES.
1265+
1266+
HTML_DYNAMIC_MENUS = YES
1267+
12461268
# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
12471269
# documentation will contain sections that can be hidden and shown after the
12481270
# page has loaded.
@@ -1266,12 +1288,12 @@ HTML_INDEX_NUM_ENTRIES = 100
12661288

12671289
# If the GENERATE_DOCSET tag is set to YES, additional index files will be
12681290
# generated that can be used as input for Apple's Xcode 3 integrated development
1269-
# environment (see: http://developer.apple.com/tools/xcode/), introduced with
1291+
# environment (see: https://developer.apple.com/tools/xcode/), introduced with
12701292
# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a
12711293
# Makefile in the HTML output directory. Running make will produce the docset in
12721294
# that directory and running make install will install the docset in
12731295
# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at
1274-
# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
1296+
# startup. See https://developer.apple.com/tools/creatingdocsetswithdoxygen.html
12751297
# for more information.
12761298
# The default value is: NO.
12771299
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1387,40 +1409,37 @@ QCH_FILE =
13871409

13881410
# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help
13891411
# Project output. For more information please see Qt Help Project / Namespace
1390-
# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace).
1412+
# (see: http://doc.qt.io/qt-4.8/qthelpproject.html#namespace).
13911413
# The default value is: org.doxygen.Project.
13921414
# This tag requires that the tag GENERATE_QHP is set to YES.
13931415

13941416
QHP_NAMESPACE = org.doxygen.Project
13951417

13961418
# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt
13971419
# Help Project output. For more information please see Qt Help Project / Virtual
1398-
# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual-
1399-
# folders).
1420+
# Folders (see: http://doc.qt.io/qt-4.8/qthelpproject.html#virtual-folders).
14001421
# The default value is: doc.
14011422
# This tag requires that the tag GENERATE_QHP is set to YES.
14021423

14031424
QHP_VIRTUAL_FOLDER = doc
14041425

14051426
# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom
14061427
# filter to add. For more information please see Qt Help Project / Custom
1407-
# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
1408-
# filters).
1428+
# Filters (see: http://doc.qt.io/qt-4.8/qthelpproject.html#custom-filters).
14091429
# This tag requires that the tag GENERATE_QHP is set to YES.
14101430

14111431
QHP_CUST_FILTER_NAME =
14121432

14131433
# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the
14141434
# custom filter to add. For more information please see Qt Help Project / Custom
1415-
# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
1416-
# filters).
1435+
# Filters (see: http://doc.qt.io/qt-4.8/qthelpproject.html#custom-filters).
14171436
# This tag requires that the tag GENERATE_QHP is set to YES.
14181437

14191438
QHP_CUST_FILTER_ATTRS =
14201439

14211440
# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
14221441
# project's filter section matches. Qt Help Project / Filter Attributes (see:
1423-
# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes).
1442+
# http://doc.qt.io/qt-4.8/qthelpproject.html#filter-attributes).
14241443
# This tag requires that the tag GENERATE_QHP is set to YES.
14251444

14261445
QHP_SECT_FILTER_ATTRS =
@@ -1513,7 +1532,7 @@ EXT_LINKS_IN_WINDOW = NO
15131532

15141533
FORMULA_FONTSIZE = 10
15151534

1516-
# Use the FORMULA_TRANPARENT tag to determine whether or not the images
1535+
# Use the FORMULA_TRANSPARENT tag to determine whether or not the images
15171536
# generated for formulas are transparent PNGs. Transparent PNGs are not
15181537
# supported properly for IE 6.0, but are supported on all modern browsers.
15191538
#
@@ -1525,7 +1544,7 @@ FORMULA_FONTSIZE = 10
15251544
FORMULA_TRANSPARENT = YES
15261545

15271546
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
1528-
# http://www.mathjax.org) which uses client side Javascript for the rendering
1547+
# https://www.mathjax.org) which uses client side Javascript for the rendering
15291548
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
15301549
# installed or if you want to formulas look prettier in the HTML output. When
15311550
# enabled you may also need to install MathJax separately and configure the path
@@ -1552,7 +1571,7 @@ MATHJAX_FORMAT = HTML-CSS
15521571
# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax
15531572
# Content Delivery Network so you can quickly see the result without installing
15541573
# MathJax. However, it is strongly recommended to install a local copy of
1555-
# MathJax from http://www.mathjax.org before deployment.
1574+
# MathJax from https://www.mathjax.org before deployment.
15561575
# The default value is: http://cdn.mathjax.org/mathjax/latest.
15571576
# This tag requires that the tag USE_MATHJAX is set to YES.
15581577

@@ -1614,7 +1633,7 @@ SERVER_BASED_SEARCH = NO
16141633
#
16151634
# Doxygen ships with an example indexer (doxyindexer) and search engine
16161635
# (doxysearch.cgi) which are based on the open source search engine library
1617-
# Xapian (see: http://xapian.org/).
1636+
# Xapian (see: https://xapian.org/).
16181637
#
16191638
# See the section "External Indexing and Searching" for details.
16201639
# The default value is: NO.
@@ -1627,7 +1646,7 @@ EXTERNAL_SEARCH = NO
16271646
#
16281647
# Doxygen ships with an example indexer (doxyindexer) and search engine
16291648
# (doxysearch.cgi) which are based on the open source search engine library
1630-
# Xapian (see: http://xapian.org/). See the section "External Indexing and
1649+
# Xapian (see: https://xapian.org/). See the section "External Indexing and
16311650
# Searching" for details.
16321651
# This tag requires that the tag SEARCHENGINE is set to YES.
16331652

@@ -1814,7 +1833,7 @@ LATEX_SOURCE_CODE = NO
18141833

18151834
# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
18161835
# bibliography, e.g. plainnat, or ieeetr. See
1817-
# http://en.wikipedia.org/wiki/BibTeX and \cite for more info.
1836+
# https://en.wikipedia.org/wiki/BibTeX and \cite for more info.
18181837
# The default value is: plain.
18191838
# This tag requires that the tag GENERATE_LATEX is set to YES.
18201839

@@ -1997,9 +2016,9 @@ DOCBOOK_PROGRAMLISTING = NO
19972016
#---------------------------------------------------------------------------
19982017

19992018
# If the GENERATE_AUTOGEN_DEF tag is set to YES, doxygen will generate an
2000-
# AutoGen Definitions (see http://autogen.sf.net) file that captures the
2001-
# structure of the code including all documentation. Note that this feature is
2002-
# still experimental and incomplete at the moment.
2019+
# AutoGen Definitions (see http://autogen.sourceforge.net/) file that captures
2020+
# the structure of the code including all documentation. Note that this feature
2021+
# is still experimental and incomplete at the moment.
20032022
# The default value is: NO.
20042023

20052024
GENERATE_AUTOGEN_DEF = NO

Lattice.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "Lattice.h"
77

88
using namespace std;
9+
using namespace Utils;
910

1011
Lattice::Lattice() {
1112

@@ -222,6 +223,10 @@ int Lattice::getWidth() const{
222223
return Width;
223224
}
224225

226+
double Lattice::getVolume() const {
227+
return ((Length*Width*Height*1e-7*Unit_size)*1e-7*Unit_size)*1e-7*Unit_size;
228+
}
229+
225230
bool Lattice::isOccupied(const Coords& coords) const{
226231
return site_ptrs[getSiteIndex(coords)]->isOccupied();
227232
}

Lattice.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ class Lattice{
181181
//! \return The unit size property of the lattice.
182182
double getUnitSize() const;
183183

184+
//! \brief Gets the volume of the lattice in cm^-3.
185+
double getVolume() const;
186+
184187
//! \brief Gets the y-direction size of the lattice, the width.
185188
//! \return The Width property of the lattice, which is the y-direction size.
186189
int getWidth() const;

Simulation.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void Simulation::init(const Parameters_Simulation& params, const int id) {
4545
}
4646

4747

48-
list<Event*>::iterator Simulation::addEvent(Event* event_ptr) {
48+
list<Event*>::const_iterator Simulation::addEvent(Event* event_ptr) {
4949
event_ptrs.push_back(event_ptr);
5050
return --event_ptrs.end();
5151
}
@@ -64,7 +64,7 @@ void Simulation::addObject(Object* object_ptr) {
6464
N_events_executed++;
6565
}
6666

67-
list<Event*>::iterator Simulation::chooseNextEvent() {
67+
list<Event*>::const_iterator Simulation::chooseNextEvent() {
6868
auto event_target_it = event_ptrs.begin();
6969
if (event_ptrs.size() > 1) {
7070
for (auto it = ++event_ptrs.begin(); it != event_ptrs.end(); ++it) {
@@ -162,6 +162,10 @@ double Simulation::getTime() const {
162162
return time_sim;
163163
}
164164

165+
double Simulation::getVolume() const {
166+
return lattice.getVolume();
167+
}
168+
165169
bool Simulation::isLoggingEnabled() const {
166170
return Enable_logging;
167171
}

Simulation.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ class Simulation{
110110
//! Get the current simulation time in units of seconds.
111111
double getTime() const;
112112

113+
//! Get the simulation box volume in cm^-3
114+
double getVolume() const;
115+
113116
//! \brief Checks whether or not logging is enabled.
114117
//! \details This is primarily used for debugging purposes.
115118
//! \return true if logging is enabled.
@@ -140,7 +143,7 @@ class Simulation{
140143
//! \brief Adds a pointer to an Event object to the event list and returns the iterator to its position in the list.
141144
//! \param event_ptr is the input Event pointer.
142145
//! \return A list iterator that indicates where in the event list the newly added Event pointer is located.
143-
std::list<Event*>::iterator addEvent(Event* event_ptr);
146+
std::list<Event*>::const_iterator addEvent(Event* event_ptr);
144147

145148
//! \brief Adds a pointer to an Object object to the object list.
146149
//! \param object_ptr is the input Object pointer.
@@ -149,7 +152,7 @@ class Simulation{
149152
//! \brief Searches the event list and determines which event will be executed next.
150153
//! \details Chooses the event that has the smallest execution time.
151154
//! \return A list iterator points to an Event pointer in event list that has been selected to be executed next.
152-
std::list<Event*>::iterator chooseNextEvent();
155+
std::list<Event*>::const_iterator chooseNextEvent();
153156

154157
//! \brief Constructs and returns a vector of pointers to all Object objects that are to have their events recalculated/
155158
//! \param coords_start is the Coords struct that designates the starting coordinates of an event.

Utils.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,8 @@ namespace Utils {
205205
result = 1;
206206
return result;
207207
}
208-
int exponent_abs;
209-
if (exponent < 0) {
210-
exponent_abs = -exponent;
211-
}
212-
else {
213-
exponent_abs = exponent;
214-
}
215208
result = base;
216-
for (int i = 1; i < exponent_abs; i++) {
209+
for (int i = 1; i < abs(exponent); i++) {
217210
result *= base;
218211
}
219212
if (exponent < 0) {

docs/_event_8h_source.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<tr style="height: 56px;">
3131
<td id="projectalign" style="padding-left: 0.5em;">
3232
<div id="projectname">KMC_Lattice
33-
&#160;<span id="projectnumber">v2.0-beta.2</span>
33+
&#160;<span id="projectnumber">v2.0-beta.3</span>
3434
</div>
3535
<div id="projectbrief">A general framework for three-dimensional lattice kinetic Monte Carlo simulations</div>
3636
</td>

docs/_lattice_8h_source.html

Lines changed: 30 additions & 29 deletions
Large diffs are not rendered by default.

docs/_object_8h_source.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<tr style="height: 56px;">
3131
<td id="projectalign" style="padding-left: 0.5em;">
3232
<div id="projectname">KMC_Lattice
33-
&#160;<span id="projectnumber">v2.0-beta.2</span>
33+
&#160;<span id="projectnumber">v2.0-beta.3</span>
3434
</div>
3535
<div id="projectbrief">A general framework for three-dimensional lattice kinetic Monte Carlo simulations</div>
3636
</td>

docs/_simulation_8h_source.html

Lines changed: 19 additions & 18 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)