tfix string checks - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
(HTM) git clone git://src.adamsgaard.dk/cosmo
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit f2bb9d234b22b592855ac392e0c8e12f2d916b42
(DIR) parent 4933e2e43e02e8293f8e7ca9ee6751d2a01a4d98
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 1 Dec 2015 10:41:03 +0100
fix string checks
Diffstat:
M matlab/file_scanner_mcmc_starter.m | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/matlab/file_scanner_mcmc_starter.m b/matlab/file_scanner_mcmc_starter.m
t@@ -13,10 +13,11 @@ infolder = '~/cosmo/input';
% outfolder: folder for generated plots
[status, hostname] = system('hostname');
-if strfind(hostname, 'flaptop') || strfind(hostname, 'adc-server') % laptop
+if ~isempty(strfind(hostname, 'flaptop')) || ...
+ ~isempty(strfind(hostname, 'adc-server')) % laptop or desktop
infolder = '~/src/cosmo/input';
outfolder = 'output/';
-else % server
+else % cosmo server
outfolder = '/var/www/html/output/';
end