Skip to content

Getting Started on Mac

Carole Hayakawa edited this page Jul 2, 2020 · 15 revisions

These instructions describe how to clone the source code on OSX and build it

Prerequisites

  • An installation of git. To install on OSX, bring up a terminal window
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew install git
brew cask install powershell
pwsh

Getting the source code

Clone the source code from GitHub using the command:

git clone https://github.com/VirtualPhotonics/vts.git

This will create a directory "vts" in your current directory.

Building the Code

  • Using powershell:
cd vts
pwsh
./BuildTestRelease.ps1
exit

To execute any application, e.g. Monte Carlo CommandLine (MCCL):

cd src/Vts.MonteCarlo.CommandLineApplication/bin/Debug/netcoreapp2.1

To generate sample infiles for MCCL

dotnet mc.dll geninfiles

To run MCCL with sample infile

dotnet mc.dll infile=infile_one_layer_all_detectors.txt

Clone this wiki locally