Skip to content
Snippets Groups Projects
Select Git revision
  • 4adddae0404ad5921ad537606498486c69e9811c
  • master default protected
  • fix_Makefile.mingw#2
  • update_Makefile.mingw
  • fix_Makefile.mingw
  • fix_API_for_C_apps
  • fix_procinfo_mac
  • boinccmd_gpu_mode_always_until_sigterm
  • fgrp_osx_hotfix
  • fix_boinc_master@f8250782
  • eah_wrapper_improvements
  • diagnostics_win-hotfix
  • diagnostics_win-hotfix-old
  • current_fgrp_apps
  • testing_gw_apps
  • gw_app_darwin_15
  • current_brp_apps
  • current_brp_apps_android10
  • current_gfx_apps
  • current_server
  • current_gw_apps
  • previous_fgrp_apps
  • previous_gw_apps
  • testing_brp_apps
  • apps_FGRP3_1.07
  • apps_FGRP3_1.08
26 results

generate_svn_version.sh

Blame
  • FT_example5.m 1.00 KiB
    
    % Example file for using SimTools with Finesse
    
    clear all;
    
    % name of kat file which contains 'blocks'
    inname='testconsts.kat';
    
    % read in block from testblock.kat
    block=FT_read_blocks_from_file(inname);
    myblock=FT_copy_block(block,'constants');
    
    disp('----------------------------------------------------------');
    % print reflectivies 
    r1=FT_read_kat_constant(myblock,'Rm1');
    r2=FT_read_kat_constant(myblock,'Rm2');
    disp(sprintf('Reflectivities of m1 and m2: %f %f',r1,r2));
    
    % now we change the reflectivity for one of m
    myblock=FT_write_kat_constant(myblock,'Rm1',0.7);
    
    %to check we print the block again
    disp('----------------------------------------------------------');
    disp('block of constants after changing Rm1:');
    FT_print_block(myblock,'constants');
    
    disp('----------------------------------------------------------');
    disp('creating a tmp block from lines 1-4 of the constants');
    newblock=FT_create_new_block('tmp');
    [newblock]=FT_copy_lines_block_to_block(myblock,newblock,1:4);
    FT_print_block(newblock,'tmp');