<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DFNgen: DFNmain.cpp File Reference</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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</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">DFNgen
   &#160;<span id="projectnumber">2.0</span>
   </div>
   <div id="projectbrief">DFN Model Generator</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_d_f_nmain_8cpp.html','');});
</script>
<div id="doc-content">
<!-- 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 class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">DFNmain.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;random&gt;</code><br />
<code>#include &lt;algorithm&gt;</code><br />
<code>#include &lt;iterator&gt;</code><br />
<code>#include &lt;iomanip&gt;</code><br />
<code>#include &quot;<a class="el" href="structures_8h_source.html">structures.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="insert_shape_8h_source.html">insertShape.h</a>&quot;</code><br />
<code>#include &lt;vector&gt;</code><br />
<code>#include &quot;<a class="el" href="input_8h_source.html">input.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="output_8h_source.html">output.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="read_input_functions_8h_source.html">readInputFunctions.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="cluster_groups_8h_source.html">clusterGroups.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="math_functions_8h_source.html">mathFunctions.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="domain_8h_source.html">domain.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="computational_geometry_8h_source.html">computationalGeometry.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="generating_points_8h_source.html">generatingPoints.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="distributions_8h_source.html">distributions.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="fracture_estimating_8h_source.html">fractureEstimating.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="debug_functions_8h_source.html">debugFunctions.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="remove_fractures_8h_source.html">removeFractures.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="testing_8h_source.html">testing.h</a>&quot;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &lt;unistd.h&gt;</code><br />
<code>#include &lt;sys/select.h&gt;</code><br />
<code>#include &lt;termios.h&gt;</code><br />
<code>#include &quot;<a class="el" href="hotkey_8h_source.html">hotkey.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for DFNmain.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="_d_f_nmain_8cpp__incl.png" border="0" usemap="#_d_f_nmain_8cpp" alt=""/></div>
<map name="_d_f_nmain_8cpp" id="_d_f_nmain_8cpp">
<area shape="rect" id="node7" href="structures_8h.html" title="structures.h" alt="" coords="989,229,1081,256"/>
<area shape="rect" id="node10" href="insert_shape_8h.html" title="insertShape.h" alt="" coords="1051,80,1155,107"/>
<area shape="rect" id="node13" href="distributions_8h.html" title="distributions.h" alt="" coords="1529,155,1633,181"/>
<area shape="rect" id="node15" href="input_8h.html" title="input.h" alt="" coords="713,80,775,107"/>
<area shape="rect" id="node16" href="output_8h.html" title="output.h" alt="" coords="619,80,689,107"/>
<area shape="rect" id="node17" href="read_input_functions_8h.html" title="readInputFunctions.h" alt="" coords="447,80,594,107"/>
<area shape="rect" id="node18" href="cluster_groups_8h.html" title="clusterGroups.h" alt="" coords="199,155,314,181"/>
<area shape="rect" id="node19" href="math_functions_8h.html" title="mathFunctions.h" alt="" coords="1179,80,1299,107"/>
<area shape="rect" id="node20" href="domain_8h.html" title="domain.h" alt="" coords="1275,155,1353,181"/>
<area shape="rect" id="node21" href="computational_geometry_8h.html" title="computationalGeometry.h" alt="" coords="852,80,1026,107"/>
<area shape="rect" id="node22" href="generating_points_8h.html" title="generatingPoints.h" alt="" coords="1641,80,1774,107"/>
<area shape="rect" id="node23" href="fracture_estimating_8h.html" title="fractureEstimating.h" alt="" coords="1425,80,1565,107"/>
<area shape="rect" id="node24" href="debug_functions_8h.html" title="debugFunctions.h" alt="" coords="339,155,467,181"/>
<area shape="rect" id="node25" href="remove_fractures_8h.html" title="removeFractures.h" alt="" coords="865,155,998,181"/>
<area shape="rect" id="node26" href="testing_8h.html" title="testing.h" alt="" coords="1849,80,1921,107"/>
<area shape="rect" id="node32" href="hotkey_8h.html" title="hotkey.h" alt="" coords="2435,80,2507,107"/>
<area shape="rect" id="node14" href="exp_dist_8h.html" title="expDist.h" alt="" coords="1593,229,1670,256"/>
</map>
</div>
</div>
<p><a href="_d_f_nmain_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a3c04138a5bfe5d72780bb7e82a18e627"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a> (int argc, char **argv)</td></tr>
<tr class="separator:a3c04138a5bfe5d72780bb7e82a18e627"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a1705dee0e4e822859804bec377506fb5"><td class="memItemLeft" align="right" valign="top">struct termios&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_d_f_nmain_8cpp.html#a1705dee0e4e822859804bec377506fb5">orig_termios</a></td></tr>
<tr class="separator:a1705dee0e4e822859804bec377506fb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a974b448c3d0a13d483d36ef15de369b5"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_d_f_nmain_8cpp.html#a974b448c3d0a13d483d36ef15de369b5">eps</a></td></tr>
<tr class="separator:a974b448c3d0a13d483d36ef15de369b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a3c04138a5bfe5d72780bb7e82a18e627"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c04138a5bfe5d72780bb7e82a18e627">&sect;&nbsp;</a></span>main()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>argv</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_d_f_nmain_8cpp_source.html#l00042">42</a> of file <a class="el" href="_d_f_nmain_8cpp_source.html">DFNmain.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="_d_f_nmain_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.png" border="0" usemap="#_d_f_nmain_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph" alt=""/></div>
<map name="_d_f_nmain_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph" id="_d_f_nmain_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph">
<area shape="rect" id="node2" href="read_input_8cpp.html#a9af5f928fea3353fc4009118630b3f52" title="getInput" alt="" coords="157,208,227,235"/>
<area shape="rect" id="node11" href="debug_functions_8cpp.html#a0d86e9931b24c2b392a6a307d7725c69" title="printShapeFams" alt="" coords="375,411,495,437"/>
<area shape="rect" id="node12" href="insert_shape_8cpp.html#ae4fa66ac2a60ae519ee05168b44c9917" title="shapeType" alt="" coords="619,411,707,437"/>
<area shape="rect" id="node13" href="insert_shape_8cpp.html#a9b3f632508ac90991bd6ebee7bcfbc2f" title="getFamilyNumber" alt="" coords="599,461,726,488"/>
<area shape="rect" id="node14" href="read_input_functions_8cpp.html#af648b2c8b7622d441c1bc50f0f9c83b0" title="getTimeBasedSeed" alt="" coords="123,512,261,539"/>
<area shape="rect" id="node15" href="fracture_estimating_8cpp.html#acb37fb0878da2fa7f0648216fb4189e4" title="generateRadiiLists\l_nPolyOption" alt="" coords="126,614,258,655"/>
<area shape="rect" id="node18" href="fracture_estimating_8cpp.html#a7cf21b594fd24b2879af467e23bdac0a" title="dryRun" alt="" coords="159,832,225,859"/>
<area shape="rect" id="node19" href="math_functions_8cpp.html#a9422106ad945a110b0cf696050962556" title="createCDF" alt="" coords="619,917,706,944"/>
<area shape="rect" id="node20" href="insert_shape_8cpp.html#a262d50919e2ca1c4e8b32ec027a52b57" title="p32Complete" alt="" coords="384,613,485,640"/>
<area shape="rect" id="node24" href="math_functions_8cpp.html#a2540d3ded7bd488a924ce2e4c2443261" title="indexFromProb_and_P32Status" alt="" coords="329,1019,541,1045"/>
<area shape="rect" id="node25" href="math_functions_8cpp.html#a5eae1db9cbad8e807a0d677bcd805d36" title="indexFromProb" alt="" coords="606,1095,719,1121"/>
<area shape="rect" id="node26" href="insert_shape_8cpp.html#a4f91304a14fefba4d4f93f2f3e54dee4" title="generatePoly" alt="" coords="385,664,485,691"/>
<area shape="rect" id="node27" href="domain_8cpp.html#aed3d77c17f33d2024704b479d0885332" title="domainTruncation" alt="" coords="370,1288,499,1315"/>
<area shape="rect" id="node28" href="insert_shape_8cpp.html#afa95ede56e6ecb8918b61c5a2815d40d" title="reTranslatePoly" alt="" coords="377,715,493,741"/>
<area shape="rect" id="node29" href="math_functions_8cpp.html#a78276693aa55fab858a41366e5b4aa73" title="getArea" alt="" coords="400,1339,469,1365"/>
<area shape="rect" id="node30" href="math_functions_8cpp.html#a55646cd87f15106134e9cb832492e1f6" title="adjustCDF_and_famProb" alt="" coords="349,917,521,944"/>
<area shape="rect" id="node31" href="fracture_estimating_8cpp.html#a26080c2634b53083b47b763b66bd4911" title="addRadiiToLists" alt="" coords="133,563,251,589"/>
<area shape="rect" id="node32" href="fracture_estimating_8cpp.html#ae3e14f5bf8ea7b1470e64a74e0354947" title="sortRadii" alt="" coords="155,1035,229,1061"/>
<area shape="rect" id="node34" href="hotkey_8cpp.html#a49d261c1ea17ddedcc836585c758e3b2" title="set_conio_terminal_mode" alt="" coords="105,1237,279,1264"/>
<area shape="rect" id="node35" href="hotkey_8cpp.html#ac8373d63f264c2e956b071b5bd2588a1" title="reset_terminal_mode" alt="" coords="119,1288,265,1315"/>
<area shape="rect" id="node36" href="insert_shape_8h.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="133,1389,251,1416"/>
<area shape="rect" id="node37" href="computational_geometry_8cpp.html#ace23b489a120bc6d6407f7e08e1e009d" title="createBoundingBox" alt="" coords="365,1440,504,1467"/>
<area shape="rect" id="node38" href="computational_geometry_8cpp.html#a38a8c322dba7d8518a4c3206cd55a5f6" title="intersectionChecking" alt="" coords="362,1541,507,1568"/>
<area shape="rect" id="node39" href="insert_shape_8cpp.html#ae9670e906ee5dc43ce3fbc0ce7290dc7" title="printRejectReason" alt="" coords="369,1491,501,1517"/>
<area shape="rect" id="node40" href="insert_shape_8h.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="107,1491,277,1517"/>
<area shape="rect" id="node41" href="insert_shape_8h.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="143,1339,241,1365"/>
<area shape="rect" id="node42" href="insert_shape_8h.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="117,1541,267,1568"/>
<area shape="rect" id="node43" href="hotkey_8cpp.html#ad5451da499ab9d3907da8dd7060ab677" title="kbhit" alt="" coords="167,1693,217,1720"/>
<area shape="rect" id="node44" href="hotkey_8cpp.html#a160f6d2893bb6b89ab3ad5d863c20e3d" title="getch" alt="" coords="165,1744,219,1771"/>
<area shape="rect" id="node45" href="insert_shape_8cpp.html#a19e9a86f45510bc87d7fe84a11caffcf" title="assignAperture" alt="" coords="136,1795,248,1821"/>
<area shape="rect" id="node46" href="insert_shape_8cpp.html#ab66dd8460f2f45feae57425d7c219bf5" title="assignPermeability" alt="" coords="125,1845,259,1872"/>
<area shape="rect" id="node47" href="remove_fractures_8cpp.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="131,1896,253,1923"/>
<area shape="rect" id="node48" href="debug_functions_8cpp.html#a77317c191140e58c1ca12f2badadbc8b" title="printPolyData" alt="" coords="141,1947,243,1973"/>
<area shape="rect" id="node49" href="cluster_groups_8cpp.html#aa3f6bef1533919464df1f55a65fcbad3" title="getCluster" alt="" coords="151,1997,233,2024"/>
<area shape="rect" id="node50" href="output_8cpp.html#ad84815b625587d2194321694a13f2477" title="writeOutput" alt="" coords="147,2048,237,2075"/>
<area shape="rect" id="node3" href="read_input_functions_8cpp.html#a93d02ef3164ffc7b03270f3c0e1736aa" title="checkIfOpen" alt="" coords="386,157,483,184"/>
<area shape="rect" id="node4" href="read_input_functions_8cpp.html#a357980bcda25432dcf68b2f19718ed32" title="searchVar" alt="" coords="393,208,476,235"/>
<area shape="rect" id="node5" href="read_input_functions_8h.html#a43a54a71ca7fdbfee584667d779f5ecb" title="getInputAry" alt="" coords="389,259,480,285"/>
<area shape="rect" id="node6" href="generating_points_8cpp.html#a15a7dfd1320eb3c7c3cc2c53ed4ba2c1" title="generateTheta" alt="" coords="380,968,489,995"/>
<area shape="rect" id="node7" href="read_input_functions_8h.html#af3ca30978155c408a22accb089cfb2f6" title="getElements" alt="" coords="387,309,483,336"/>
<area shape="rect" id="node8" href="read_input_functions_8h.html#adb0e78d29aea2d97dcae112fa8c1b302" title="get2dAry" alt="" coords="397,5,473,32"/>
<area shape="rect" id="node9" href="read_input_functions_8cpp.html#ace2678acc2713901e5e84f0b88d27029" title="getCords" alt="" coords="397,56,473,83"/>
<area shape="rect" id="node10" href="read_input_functions_8cpp.html#a24ac2ea59c066cbc9c9c5334dec3bc49" title="getRectCoords" alt="" coords="379,107,490,133"/>
<area shape="rect" id="node16" href="insert_shape_8cpp.html#aa49097ed959c129cc9c8d11c6053ec71" title="getLargestFractureRadius" alt="" coords="347,563,523,589"/>
<area shape="rect" id="node17" href="fracture_estimating_8cpp.html#a140fd92d8397f94299e3b1df7fed9af4" title="addRadii" alt="" coords="397,512,472,539"/>
<area shape="rect" id="node21" href="math_functions_8cpp.html#ad67ac7ecedfff7a737cd47a2f63b473a" title="cdfIdxFromFamNum" alt="" coords="363,816,507,843"/>
<area shape="rect" id="node22" href="insert_shape_8cpp.html#a4a4d307b0a091a6159358f312371ae95" title="generatePoly_withRadius" alt="" coords="348,765,521,792"/>
<area shape="rect" id="node23" href="insert_shape_8cpp.html#aed01cfb18a8a6b4ec394783593d5765f" title="initializeRectVertices" alt="" coords="590,765,735,792"/>
<area shape="rect" id="node33" href="generating_points_8cpp.html#aa3af81bf42f3459e297870e04f2966c0" title="greaterThan" alt="" coords="387,1120,482,1147"/>
</map>
</div>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a974b448c3d0a13d483d36ef15de369b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a974b448c3d0a13d483d36ef15de369b5">&sect;&nbsp;</a></span>eps</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double eps</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_d_f_nmain_8cpp_source.html#l00039">39</a> of file <a class="el" href="_d_f_nmain_8cpp_source.html">DFNmain.cpp</a>.</p>

</div>
</div>
<a id="a1705dee0e4e822859804bec377506fb5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1705dee0e4e822859804bec377506fb5">&sect;&nbsp;</a></span>orig_termios</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct termios orig_termios</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_d_f_nmain_8cpp_source.html#l00036">36</a> of file <a class="el" href="_d_f_nmain_8cpp_source.html">DFNmain.cpp</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="_d_f_nmain_8cpp.html">DFNmain.cpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
