Skip to content
Snippets Groups Projects
Commit e1fd51fc authored by Olivier Sauter's avatar Olivier Sauter
Browse files

use isfinite instead of ~isnan since more general and avoids NaNs and Infs,...

use isfinite instead of ~isnan since more general and avoids NaNs and Infs, ready to move function up for all machines

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@8147 d63d8f72-b253-0410-a779-e742ad2e26cf
parent c0476dfb
No related branches found
No related tags found
No related merge requests found
......@@ -52,9 +52,9 @@ for it=1:length(gdat_data.t)
it_rt_eff = it_rt(it);
it_vol_eff = it_vol(it);
if (nbdim_x == 1)
ii=find(~isnan(gdat_data.grids_1d.rhopolnorm));
ii=find(isfinite(gdat_data.grids_1d.rhopolnorm));
else
ii=find(~isnan(gdat_data.grids_1d.rhopolnorm(:,it)));
ii=find(isfinite(gdat_data.grids_1d.rhopolnorm(:,it)));
end
if (nbdim_x == 1)
if length(ii)==length(gdat_data.grids_1d.rhopolnorm)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment