Skip to content

Commit

Permalink
Return to use of GETPATH, but point to new location in example hiearchy
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed Feb 15, 2024
1 parent fcc49e7 commit 269ab47
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,21 @@
*
* %End
*******************************************************************************/
DEFINE INSTRUMENT Test_MCPL_input(repeat=1,E_smear=0.1,pos_smear=0.001,dir_smear=0.01,string MCPLFILE="voutput.mcpl")
DEFINE INSTRUMENT Test_MCPL_input(repeat=1,E_smear=0.1,pos_smear=0.001,dir_smear=0.01)
DEPENDENCY "-DMCPLPATH=GETPATH(examples/Tests_MCPL_etc/Test_MCPL_input/voutput.mcpl)"

DECLARE
%{
long long ncount_i;

#define QUOTE(name) #name
#define STR(macro) QUOTE(macro)

#ifndef MCPLPATH
#define MCPLPATH=/usr/share/mcstas/2.3/MCPL/voutput.mcpl
#endif

#define MCPLFILE STR(MCPLPATH)
%}

INITIALIZE
Expand Down

0 comments on commit 269ab47

Please sign in to comment.