source: MML/trunk/at/doc_html/at/atmexall.html @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 5.2 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2                "http://www.w3.org/TR/REC-html40/loose.dtd">
3<html>
4<head>
5  <title>Description of atmexall</title>
6  <meta name="keywords" content="atmexall">
7  <meta name="description" content="ATMEXALL builds all AT platform deendent mex-files from C-sources">
8  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
9  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">
10  <meta name="robots" content="index, follow">
11  <link type="text/css" rel="stylesheet" href="../m2html.css">
12</head>
13<body>
14<a name="_top"></a>
15<div><a href="../index.html">Home</a> &gt;  <a href="index.html">at</a> &gt; atmexall.m</div>
16
17<!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png">&nbsp;Master index</a></td>
18<td align="right"><a href="index.html">Index for at&nbsp;<img alt=">" border="0" src="../right.png"></a></td></tr></table>-->
19
20<h1>atmexall
21</h1>
22
23<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
24<div class="box"><strong>ATMEXALL builds all AT platform deendent mex-files from C-sources</strong></div>
25
26<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
27<div class="box"><strong>This is a script file. </strong></div>
28
29<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
30<div class="fragment"><pre class="comment">ATMEXALL builds all AT platform deendent mex-files from C-sources
31 On UNIX platform, the GNU gcc compiler must be installed and
32 properly configured.
33 On Windows, Microsoft Visual C++ is required</pre></div>
34
35<!-- crossreference -->
36<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
37This function calls:
38<ul style="list-style-image:url(../matlabicon.gif)">
39<li><a href="atroot.html" class="code" title="function rootdir = atroot">atroot</a>     ATROOT returns Accelerator Toolbox root directory</li></ul>
40This function is called by:
41<ul style="list-style-image:url(../matlabicon.gif)">
42</ul>
43<!-- crossreference -->
44
45
46<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
47<div class="fragment"><pre>0001 <span class="comment">%ATMEXALL builds all AT platform deendent mex-files from C-sources</span>
480002 <span class="comment">% On UNIX platform, the GNU gcc compiler must be installed and</span>
490003 <span class="comment">% properly configured.</span>
500004 <span class="comment">% On Windows, Microsoft Visual C++ is required</span>
510005
520006 <span class="comment">% Modification by Laurent S. Nadolski, April 6th, 2007</span>
530007 <span class="comment">% For Linux platform -ldl is need (personal laptop)</span>
540008 <span class="comment">% PLATFORMOPTION = ['-ldl -D',computer,' '];</span>
550009
560010 ATROOT = <a href="atroot.html" class="code" title="function rootdir = atroot">atroot</a>
570011
580012 <span class="comment">% Navigate to the directory that contains pass-methods</span>
590013 cd(ATROOT)
600014 cd simulator
610015 cd element
620016 PASSMETHODDIR = pwd;
630017 disp([<span class="string">'Current directory: '</span>,PASSMETHODDIR]);
640018 mexpassmethod(<span class="string">'all'</span>);
650019
660020
670021 <span class="comment">% User passmethods</span>
680022 cd user
690023 disp([<span class="string">'Current directory: '</span>, pwd]);
700024 mexuserpassmethod(<span class="string">'all'</span>);
710025
720026
730027 <span class="comment">% Navigate to the directory that contains tracking functions</span>
740028 cd(ATROOT)
750029 cd simulator
760030 cd track
770031
780032 disp([<span class="string">'Current directory:'</span>, pwd]);
790033
800034 <span class="keyword">switch</span> computer
810035     <span class="keyword">case</span> <span class="string">'SOL2'</span>
820036 PLATFORMOPTION = [<span class="string">'-D'</span>,computer,<span class="string">' '</span>];
830037     <span class="keyword">case</span> <span class="string">'GLNX86'</span>
840038         PLATFORMOPTION = [<span class="string">'-ldl -D'</span>,computer,<span class="string">' '</span>]; <span class="comment">% add by Laurent April 6th, 2007</span>
850039 <span class="keyword">end</span>
860040
870041 MEXCOMMAND = [<span class="string">'mex '</span>,PLATFORMOPTION,<span class="string">'atpass.c'</span>];
880042 disp(MEXCOMMAND);
890043 eval(MEXCOMMAND);
900044
910045 <span class="comment">% Navigate to the directory that contains some accelerator physics functions</span>
920046 cd(ATROOT)
930047 cd atphysics
940048 disp([<span class="string">'Current directory:'</span>, pwd]);
950049
960050 <span class="comment">% findmpoleraddiffmatrix.c</span>
970051 disp(<span class="string">'mex findmpoleraddiffmatrix.c'</span>)
980052
990053 eval([<span class="string">'mex findmpoleraddiffmatrix.c -I'''</span>,PASSMETHODDIR,<span class="string">''''</span>]);
1000054 <span class="comment">% ADD 'MEXING' instructions for other C files</span>
1010055 disp(<span class="string">'ALL mex-files created successfully'</span>)
1020056 clear ATROOT PASSMETHODDIR WARNMSG PLATFORMOPTION MEXCOMMAND</pre></div>
103<hr><address>Generated on Mon 21-May-2007 15:26:45 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> &copy; 2003</address>
104</body>
105</html>
Note: See TracBrowser for help on using the repository browser.