ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
finalize.m
Go to the documentation of this file.
1%> \brief
2%> Finalize the ParaMonte MATLAB sampler simulation run and return nothing.
3%>
4%> \param[in] self : The input parent object of class [pm.sampling.Sampler](@ref Sampler)
5%> which is **implicitly** passed to this dynamic method (not by the user).<br>
6%>
7%> \note
8%> This is an internal method of the class [pm.sampling.Sampler](@ref Sampler).
9%>
10%> \final{finalize}
11%>
12%> \author
13%> \JoshuaOsborne, May 21 2024, 12:10 AM, University of Texas at Arlington<br>
14%> \AmirShahmoradi, September 1, 2012, 12:00 AM, National Institute for Fusion Studies, The University of Texas at Austin%>
15function finalize(self)
16 if self.partype == "openmp"
17 if ~self.silent
18 delete(gcp("nocreate"));
19 else
20 evalc('delete(gcp("nocreate")');
21 end
22 end
23 munlock(self.mexname);
24 clear(self.mexname);
25 path(self.matpath);
26 if self.clstype == "gnu"
27 setenv('GFORTRAN_STDIN_UNIT' , '-1');
28 setenv('GFORTRAN_STDOUT_UNIT', '-1');
29 setenv('GFORTRAN_STDERR_UNIT', '-1');
30 end
31end
This is the base class for the ParaMonte sampler routines.
Definition: Sampler.m:21
function which(in vendor)
Return the a MATLAB string containing the path to the first mpiexec executable binary found in system...