InverseLight / ValoMC

Monte Carlo software for simulating light propagation
https://inverselight.github.io/ValoMC/
Other
44 stars 14 forks source link

getting started #20

Open PieRic93 opened 2 years ago

PieRic93 commented 2 years ago

Hi, I'm just getting started with valoMC, but I found an issue since the beginning.. Indeed running compile_vmc_mex He immediately can't find MC2Dmex Im really noob at that I was just trying first examples,in detail the simplest

Unrecognized function or variable 'MC2Dmex'.

Error in ValoMC (line 265) [solution.element_fluence, solution.boundary_exitance, solution.boundary_fluence, solution.simulation_time, solution.seed_used] = MC2Dmex(H, HN, BH, r, BCType, BCIntensity, BCLightDirectionType, BCLightDirection, BCn, mua, mus, g, n, f, phase0, Nphoton, GaussianSigma, disable_pbar, uint64(rnseed));

Error in simpletest (line 41) solution = ValoMC(vmcmesh, vmcmedium, vmcboundary);

Can you help?

aaleino commented 2 years ago

Hi! Sorry for late response. Can you copypaste exactly the text "compile_vmc_mex" gives you? And did you remember to run the "addpath('ValoMC/')" step? Perhaps there is a problem with the installation mex compiler in Matlab. That needs to be separately installed, see "How to obtain a suitable compiler" in the README. What is your operating system?