Skip to content

Commit

Permalink
MPS prior updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cultpenguin committed May 31, 2018
1 parent 4e409fe commit 9115f66
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion sippi_prior_mps.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@


%% hard data?
if nargin<2
% for unconditional simulation force
% removal of hard data
if isfield(prior{ip},'hard_data');
prior{ip}=rmfield(prior{ip},'hard_data');
end
end

if isfield(prior{ip},'hard_data');
if ischar(prior{ip}.hard_data)
% Hard data is provided in file
Expand All @@ -133,7 +141,7 @@
end
filename_hard=prior{ip}.MPS.hard_data_filename;
if isempty(prior{ip}.hard_data)
if exist(filename_hard,'file');
if exist([pwd,filesep,filename_hard],'file');
delete(filename_hard);
end
else
Expand Down Expand Up @@ -205,5 +213,7 @@
%% RUN FORWARD
[m_propose{ip},prior{ip}.MPS]=mps_cpp(prior{ip}.ti,SIM,prior{ip}.MPS);

% In next iteration do NOT write the TI to disk!
prior{ip}.MPS.WriteTI=0;


0 comments on commit 9115f66

Please sign in to comment.