Page MenuHomec4science

constants_8hpp_source.html
No OneTemporary

File Metadata

Created
Mon, Mar 17, 14:56

constants_8hpp_source.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PHPC - nBody project: /media/lmunier/Data/EPFL/Master/2eme_annee/Semestre_2/Parallel_and_High_Performance_Computing/phpc_submit_nbody/src/constants.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">PHPC - nBody project
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">constants.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="constants_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160; </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#ifndef PROJECT_CONSTANTS_HPP</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#define PROJECT_CONSTANTS_HPP</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160; </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &lt;cstdlib&gt;</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;cstdint&gt;</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;random&gt;</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;math.h&gt;</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;curand.h&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a8b43bafee90b30676faae508c21cb8d7"> 29</a></span>&#160;<span class="preprocessor">#define PRINT </span></div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="constants_8hpp.html#aed9ea78689ecce0b7264c02c7f8a9a54"> 31</a></span>&#160;<span class="preprocessor">#define G 6.67408e-11f </span></div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a002b2f4894492820fe708b1b7e7c5e70"> 32</a></span>&#160;<span class="preprocessor">#define EPSILON 0.005f </span></div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a3deeed386c13e0d2526898f3cf3db3cf"> 34</a></span>&#160;<span class="preprocessor">#define DIM_3 3 </span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a75f5bceb8d0490f77f52370ffd8194f6"> 35</a></span>&#160;<span class="preprocessor">#define NB_PARTICLES 4096 </span></div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a4ad5358b722276fb6ec503ebc2b0d011"> 36</a></span>&#160;<span class="preprocessor">#define SIDE NB_PARTICLES </span></div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a27d553e6f2bf4078cd5b995b7691005e"> 37</a></span>&#160;<span class="preprocessor">#define SIDE_2f SIDE / 2.0f </span></div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="constants_8hpp.html#acda55cb9baa03666373658b86ad3527b"> 38</a></span>&#160;<span class="preprocessor">#define SIDE_4f SIDE / 4.0f </span></div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="constants_8hpp.html#ac179eef68bcc694aa0ef8dd1eb09950b"> 39</a></span>&#160;<span class="preprocessor">#define SHIFT SIDE / 3.0f </span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a4806239b7f0dbc96aedf9adb9cb1e444"> 40</a></span>&#160;<span class="preprocessor">#define OCCUPATION_PERC 0.5f </span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a1d730e4d47eb4add97e86a332c42006d"> 41</a></span>&#160;<span class="preprocessor">#define MASS_MAX 10e10f </span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a8b5173357adb02a86c027316e0acdfa0"> 43</a></span>&#160;<span class="preprocessor">#define MAX_THREADS 1024</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; </div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="constants_8hpp.html#a5400b1f2028d38732e4377be4f32b255"> 45</a></span>&#160;<span class="preprocessor">#define DELTA_T 0.05f </span></div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="constants_8hpp.html#aa9cc087d076e4fa101f8794a947bd01a"> 46</a></span>&#160;<span class="preprocessor">#define ITERATIONS 200 </span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="preprocessor">#endif //PROJECT_CONSTANTS_HPP</span></div></div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>

Event Timeline