sandbox/bderembl/tests/fraction_memory.c

    Illustration of the memory growth

    load "< tail -n2 mtrace"
    mtrace (script)

    mtrace (script)

    #include "fractions.h"
    #include "run.h"
    
    scalar topo[];
    
    int main() {
      run();
    }
    
    
    #define MOUNTAIN (exp(-(sq((x)))) - z)
    
    event adjust_topo (i++, i<100) {
      fraction (topo, MOUNTAIN);
    }