-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Hello,
I am running a big optimization and using the fasted pareallel computation code in Matlab as follows:
......................................................................................................................
tmpinpfile = {};
tmprptfile = {};
tmpbinfile = {};
% Create INP scenarios
parfor i = 1:m
% Load EMT, data and functions
G = Ginit;
G.loadlibrary;
G.loadEPANETFile(G.TempInpFile);
% Setting new diameters and roughness
G.setLinkDiameter(Diam_new(i,:));
G.setLinkRoughnessCoeff(Roughness_new(i,:));
% Define names of temporary INP and BIN files
tmpinpfile{i} = ['@#inp', num2str(i),'.inp'];
tmpbinfile{i} = ['@#bin', num2str(i),'.bin'];
tmprptfile{i} = ['@#rpt', num2str(i),'.rpt'];
% Computed time series
Pmcs{i} = G.getComputedTimeSeries_ENepanet(tmpinpfile{i}, tmpbinfile{i}, tmprptfile{i});
disp(['Epoch ',int2str(i)]);
% Delete temporary files
delete(tmpinpfile{i}, tmpbinfile{i}, tmprptfile{i});
end
toc;
Ginit.unload();
.................................................................................................................................
There are these warnings:
Warning: File '@#bin2.bin' not found.
In parallel_function>make_general_channel/channel_general (line 837)
In parallel.internal.parfor.cppRemoteParallelFunction (line 53)
Epoch 12
Warning: File '@#bin12.bin' not found.
In parallel_function>make_general_channel/channel_general (line 837)
In parallel.internal.parfor.cppRemoteParallelFunction (line 53)
Epoch 6
Warning: File '@#bin6.bin' not found.
In parallel_function>make_general_channel/channel_general (line 837)
In parallel.internal.parfor.cppRemoteParallelFunction (line 53)
Epoch 7
Warning: File '@#bin7.bin' not found.
In parallel_function>make_general_channel/channel_general (line 837)
In parallel.internal.parfor.cppRemoteParallelFunction (line 53)
Epoch 10
Warning: File '@#bin10.bin' not found.
In parallel_function>make_general_channel/channel_general (line 837)
In parallel.internal.parfor.cppRemoteParallelFunction (line 53)
Epoch 3
Warning: File '@#bin3.bin' not found.
In parallel_function>make_general_channel/channel_general (line 837)
In parallel.internal.parfor.cppRemoteParallelFunction (line 53)
Epoch 11
Warning: File '@#bin11.bin' not found.
In parallel_function>make_general_channel/channel_general (line 837)
In parallel.internal.parfor.cppRemoteParallelFunction (line 53)
Epoch 1
Epoch 8
Warning: File '@#bin8.bin' not found.
In parallel_function>make_general_channel/channel_general (line 837)
In parallel.internal.parfor.cppRemoteParallelFunction (line 53)
Epoch 4
Epoch 9
Warning: File '@#bin9.bin' not found.
In parallel_function>make_general_channel/channel_general (line 837)
In parallel.internal.parfor.cppRemoteParallelFunction (line 53)
Epoch 5
Warning: File '@#bin5.bin' not found.
In parallel_function>make_general_channel/channel_general (line 837)
In parallel.internal.parfor.cppRemoteParallelFunction (line 53)
Epoch 14
Warning: File '@#bin14.bin' not found.
In parallel_function>make_general_channel/channel_general (line 837)
In parallel.internal.parfor.cppRemoteParallelFunction (line 53)
Epoch 13
Warning: File '@#bin13.bin' not found.
In parallel_function>make_general_channel/channel_general (line 837)
In parallel.internal.parfor.cppRemoteParallelFunction (line 53)
Epoch 16
Epoch 15
Warning: File '@#bin15.bin' not found.
In parallel_function>make_general_channel/channel_general (line 837)
In parallel.internal.parfor.cppRemoteParallelFunction (line 53)
Elapsed time is 14.953498 seconds.
Warning: File not found or permission denied
In epanet/deleteAllTemps (line 13765)
In epanet/unload (line 13749)
Not all hydraulic simulation results of inp scenarios are calculated in Pmcs{i} and only some of them are calculated. In fact, when I open Pmcs{i}. some cells are empty.
I would really appreciate if someone could help me in this regard.