tsdev / spinw

SpinW Matlab library for spin wave calculation
www.psi.ch/spinw
GNU General Public License v3.0
30 stars 35 forks source link

sw_freemem #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
sw_freemem at the moment checks for OS version. 
isunix and ismac have the same command, where isunix command should be:

[~, memStr] = unix('free -b | grep ''-''');
[mem_used, mem_free] = strtok(memStr(20:end));
mem = str2double(mem_free);

Original issue reported on code.google.com by Substanc...@gmail.com on 14 Oct 2013 at 9:11

GoogleCodeExporter commented 9 years ago
Thanks! Bug fixed, please test it under linux!

Original comment by tot...@gmail.com on 15 Oct 2013 at 8:07

GoogleCodeExporter commented 9 years ago
Tested on PSI linux and my version without problems.

Original comment by Substanc...@gmail.com on 15 Oct 2013 at 9:03