version 0.6.0

Functions/Subroutines

logical function mod_disc_cache::is_cache_available (filename, array)
 Tells if a file can be used.
 
subroutine mod_disc_cache::disc_cache_read_double (filename, array)
 Read file to array.
 
subroutine mod_disc_cache::disc_cache_write_double (filename, array)
 Write array to file.
 

Detailed Description

Use the disc cache mechanism as follows.

Check if a disc cache is available for your array

is_avail = is_cache_available(filenane, array)

where filename points to the disc cache file, and array is the array to fill. This function checks if the file exists and verify is the cache is compatible, i. e. if you are using the same resolution and the save partitioning.

Reading or computing your data

if (is_avail) then
call disc_cache_read_double(filename, array)
else
!! Do your computations here!
call disc_cache_write_double(filename, array)
end if