[MITgcm-support] Increasing the number of grid points
aslavin at mun.ca
aslavin at mun.ca
Wed Sep 22 12:14:29 EDT 2010
Hello Joe,
In Matlab you can run script like (you just made new bed, not modify):
th = 1:120; <- your Nx
r = 1:60; <- your Ny
bed = zeros(length(th), length(r));
for i = 1:length(th)
for j = 1:length(r)
bed(i,j) = -0.2; <-put your bed here
end
end
writebin ('bathyPolR.bin', bed, 1)
You can find writebin.m in verification/seaice_obcs/input directory.
Good luck,
Alexander.
Quoting Joseph Schoonover <js08s at fsu.edu>:
> To whom it may concern,
>
> I am working off of the rotating_tank experiment under ../verification. I
> have been able to run the model with default parameters with no problem. Now,
> I would like to increase the tank size without losing resolution, i.e., I
> need to increase the number of grid points. I've gone into '../input/size.h'
> and changed sNy to 60. Upon compilation I receive an error referring to the
> binary 'bathyPolR.bin'
>
> I'm not too familiar with how binary files work, in general, but I know that
> I need to modify the file 'bathyPolR.bin' in order to increase the number of
> grid points.
>
> Given that I want to keep the same precision, how can I go about modifying
> 'bathyPolR.bin' ?
>
> Thanks in advance,
> Joe Schoonover
>
> Undergraduate Researcher, GFDI
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
>
More information about the MITgcm-support
mailing list