Changeset 26939


Ignore:
Timestamp:
03/24/22 16:24:13 (3 years ago)
Author:
dmenemen
Message:

adding the crashing test as test4004.m

Location:
issm/trunk-jpl/test
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/MITgcm/tools/lookat_4003.m

    r26886 r26939  
    22p1=[pn 'RunUncoupled/'];
    33p2=[pn 'run/'];
     4
     5for ts=30:34
     6    v1=readbin([p2 'R_shelfIce1_' myint2str(ts,10) '.data'],[3 200]);
     7    v2=readbin([p2 'R_shelfIce2_' myint2str(ts,10) '.data'],[3 200]);
     8    u=readbin([p2 'U.' myint2str(ts,10) '.data'],[3 200 90]);
     9    v=readbin([p2 'V.' myint2str(ts,10) '.data'],[3 200 90]);
     10    w=readbin([p2 'W.' myint2str(ts,10) '.data'],[3 200 90]);
     11    clf, subplot(511), plot(v1(2,:)), title(ts)
     12    subplot(512), plot(v2(2,:)-v1(2,:)), title('draft change')
     13    subplot(513), mypcolor(1:200,-1:-1:-90,squeeze(u(2,:,:))'); title('U'), colorbar
     14    subplot(514), mypcolor(1:200,-1:-1:-90,squeeze(v(2,:,:))'); title('V'), colorbar
     15    subplot(515), mypcolor(1:200,-1:-1:-90,squeeze(w(2,:,:))'); title('W'), colorbar
     16    pause
     17end
     18
     19
     20    clf
     21    subplot(311), mypcolor(v1), title(ts)
     22    subplot(312), mypcolor(v2), title(ts)
     23    subplot(313), mypcolor(v2-v1)
     24   
     25for ts=1:10 
     26    v1=readbin([p2 'SHICE_fwFlux.' myint2str(ts,10) '.data'],[3 200]);
     27    clf
     28    subplot(311), mypcolor(v1), title(ts), colorbar
     29pause
     30end
     31
     32
     33    v2=readbin([p2 'SHICE_fwFlux.' myint2str(ts,10) '.data'],[3 200]);
     34
     35
     36clf
     37for ts=5, disp(ts)
     38    T=readbin([p2 'T.' myint2str(ts,10) '.data'],[3 200 90]);
     39    S=readbin([p2 'S.' myint2str(ts,10) '.data'],[3 200 90]);
     40    U=readbin([p2 'U.' myint2str(ts,10) '.data'],[3 200 90]);
     41    V=readbin([p2 'V.' myint2str(ts,10) '.data'],[3 200 90]);
     42    W=readbin([p2 'W.' myint2str(ts,10) '.data'],[3 200 90]);
     43    for k=1:90, disp(k)
     44        clf
     45        subplot(321), plot(S(2,:,k)), title('S')
     46        subplot(322), plot(T(2,:,k)), title('T')
     47        subplot(323), plot(U(2,:,k)), title('U')
     48        subplot(324), plot(V(2,:,k)), title('V')
     49        subplot(325), plot(W(2,:,k)), title('W')
     50        pause
     51    end
     52end
     53
     54
     55clf
     56for ts=1:8, disp(ts)
     57    T=readbin([p2 'T.' myint2str(ts,10) '.data'],[3 200 90]);
     58    S=readbin([p2 'S.' myint2str(ts,10) '.data'],[3 200 90]);
     59    U=readbin([p2 'U.' myint2str(ts,10) '.data'],[3 200 90]);
     60    V=readbin([p2 'V.' myint2str(ts,10) '.data'],[3 200 90]);
     61    W=readbin([p2 'W.' myint2str(ts,10) '.data'],[3 200 90]);
     62    clf
     63    subplot(321), mypcolor(squeeze(S(2,:,:))'), title('S'), colorbar
     64    subplot(322), mypcolor(squeeze(T(2,:,:))'), title('T'), colorbar
     65    subplot(323), mypcolor(squeeze(U(2,:,:))'), title('U'), colorbar
     66    subplot(324), mypcolor(squeeze(V(2,:,:))'), title('V'), colorbar
     67    subplot(325), mypcolor(squeeze(W(2,:,:))'), title('W'), colorbar
     68    pause
     69end
     70
     71
     72
     73
     74
     75
     76ts=8;
     77v1=readbin([p2 'R_shelfIce1_' myint2str(ts,10) '.data'],[3 200]);
     78v2=readbin([p2 'R_shelfIce2_' myint2str(ts,10) '.data'],[3 200]);
     79clf
     80subplot(311), mypcolor(v1); title('R_shelfIce1'), colorbar
     81subplot(312), mypcolor(v2); title('R_shelfIce2'), colorbar
     82subplot(313), mypcolor(v2-v1); title('diff'), colorbar
     83
     84figure(2)
     85clf
     86plot(1:200,v1(2,:),'o-',1:200,v2(2,:),'o-',1:200,v2(2,:)-v1(2,:),'o-')
    487
    588ts=0;
Note: See TracChangeset for help on using the changeset viewer.