From dmenemenlis at gmail.com Wed Nov 18 18:36:20 2026 From: dmenemenlis at gmail.com (Dimitris Menemenlis) Date: Wed, 18 Nov 2026 15:36:20 -0800 Subject: [MITgcm-support] NLFS=4 with z coordinates.. and sea ice In-Reply-To: References: <20260922121804.GA46202@ocean.mit.edu> Message-ID: Hi Dan, my response is probably too late to be useful to you but for reference for others: To avoid the ice being grounded and crashing the code while not reverting to fully levitating sea ice, you can set a maximum for sIceLoad, for example, as is done here: https://github.com/MITgcm-contrib/llc_hires/blob/43054e70b88d19d3e1861aa9cbe2d3fa15536125/athena/llc_4320/code/seaice_growth.F#L357 Also checkout this pull request for a wetdry package developed by Dustin that should eventually alleviate issues with grid cell drying. D. > On Sep 23, 2026, at 2:51?AM, Stanislav Martyanov wrote: > > Hello Daniel, > > In the past, I successfully configured a regional high-resolution Kara Sea model where I used a pure z coordinate and a non-linear free surface + SEAICE package. The model is still being used and working, giving good results. > > You are right about possible issues with sea ice if it is rather thick while you have fine vertical resolution of the upper layer. Because of that (+ sea-level oscillations due to tides, storm surges, etc) I used the thickness of the upper level equal to 5 m while using z coordinate, due to possible sea-ice thickness of 2-3 m in some locations in the Kara Sea + sea-level oscillations. > > Kind Regards, > Stanislav Martyanov > > ??, 22 ????. 2026??. ? 15:23, Daniel Goldberg : > thanks J-M! i didn't know about the sIceLoadFac parameter either, so that will be an option. > > best > danFrom: MITgcm-support on behalf of Jean-Michel Campin > Sent: Tuesday, September 22, 2026 13:18 > To: mitgcm-support at mitgcm.org > Subject: Re: [MITgcm-support] NLFS=4 with z coordinates.. and sea ice > Hi Dan, > > It should work, not used much without z*, precisely for the reason you mentioned, > see also the Ocean modelling paper, doi:10.1016/j.ocemod.2008.05.005 : > "Sea ice-ocean coupling using a rescaled vertical coordinate z*" > > Note that you could always bring back an inconsistent "levitating" sea ice with > a recently added param (in "data", first namelist): sIceLoadFac=0., > > Cheers, > Jean-Michel > > On Tue, Sep 22, 2026 at 11:18:26AM +0000, Daniel Goldberg wrote: > > Hello! > > > > I am curious if anyone has used nonlinear free surface (NLFS=4) with z-coordinates and with the sea ice model? > > > > I suspect that it will be limited by the thickness of the top cell relative to the sea ice thickness, and am prepared to deal with surf_adjustment errors if they occur. > > > > But aside from this, Im wondering if there are any numerics/packages that simply won't work, of if i will get a RT error simply for trying this combination of parameters? > > > > Thanks! > > dan From Dan.Goldberg at ed.ac.uk Thu Nov 19 03:27:24 2026 From: Dan.Goldberg at ed.ac.uk (Daniel Goldberg) Date: Thu, 19 Nov 2026 08:27:24 +0000 Subject: [MITgcm-support] NLFS=4 with z coordinates.. and sea ice In-Reply-To: References: <20260922121804.GA46202@ocean.mit.edu> Message-ID: thanks dimitris! very helpful. best dan ________________________________ From: MITgcm-support on behalf of Dimitris Menemenlis Sent: Wednesday, November 18, 2026 23:36 To: MITgcm Support Subject: Re: [MITgcm-support] NLFS=4 with z coordinates.. and sea ice Hi Dan, my response is probably too late to be useful to you but for reference for others: To avoid the ice being grounded and crashing the code while not reverting to fully levitating sea ice, you can set a maximum for sIceLoad, for example, as is done here: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMITgcm-contrib%2Fllc_hires%2Fblob%2F43054e70b88d19d3e1861aa9cbe2d3fa15536125%2Fathena%2Fllc_4320%2Fcode%2Fseaice_growth.F%23L357&data=05%7C02%7C%7C61f82ff7d40e45e5143308df45ccd1e3%7C2e9f06b016694589878910a06934dc61%7C0%7C0%7C639306418144909869%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=KzRJ1dsfczvaG7E2NyYxgdgoBmM%2FNFZkOnKEzP7hvuM%3D&reserved=0 Also checkout this pull request for a wetdry package developed by Dustin that should eventually alleviate issues with grid cell drying. D. > On Sep 23, 2026, at 2:51?AM, Stanislav Martyanov wrote: > > Hello Daniel, > > In the past, I successfully configured a regional high-resolution Kara Sea model where I used a pure z coordinate and a non-linear free surface + SEAICE package. The model is still being used and working, giving good results. > > You are right about possible issues with sea ice if it is rather thick while you have fine vertical resolution of the upper layer. Because of that (+ sea-level oscillations due to tides, storm surges, etc) I used the thickness of the upper level equal to 5 m while using z coordinate, due to possible sea-ice thickness of 2-3 m in some locations in the Kara Sea + sea-level oscillations. > > Kind Regards, > Stanislav Martyanov > > ??, 22 ????. 2026??. ? 15:23, Daniel Goldberg : > thanks J-M! i didn't know about the sIceLoadFac parameter either, so that will be an option. > > best > danFrom: MITgcm-support on behalf of Jean-Michel Campin > Sent: Tuesday, September 22, 2026 13:18 > To: mitgcm-support at mitgcm.org > Subject: Re: [MITgcm-support] NLFS=4 with z coordinates.. and sea ice > Hi Dan, > > It should work, not used much without z*, precisely for the reason you mentioned, > see also the Ocean modelling paper, doi:10.1016/j.ocemod.2008.05.005 : > "Sea ice-ocean coupling using a rescaled vertical coordinate z*" > > Note that you could always bring back an inconsistent "levitating" sea ice with > a recently added param (in "data", first namelist): sIceLoadFac=0., > > Cheers, > Jean-Michel > > On Tue, Sep 22, 2026 at 11:18:26AM +0000, Daniel Goldberg wrote: > > Hello! > > > > I am curious if anyone has used nonlinear free surface (NLFS=4) with z-coordinates and with the sea ice model? > > > > I suspect that it will be limited by the thickness of the top cell relative to the sea ice thickness, and am prepared to deal with surf_adjustment errors if they occur. > > > > But aside from this, Im wondering if there are any numerics/packages that simply won't work, of if i will get a RT error simply for trying this combination of parameters? > > > > Thanks! > > dan _______________________________________________ MITgcm-support mailing list MITgcm-support at mitgcm.org https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.mitgcm.org%2Fmailman%2Flistinfo%2Fmitgcm-support&data=05%7C02%7C%7C61f82ff7d40e45e5143308df45ccd1e3%7C2e9f06b016694589878910a06934dc61%7C0%7C0%7C639306418144929717%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=CU7syBAy6z6oO7DBLlY6VPb%2BchHe4r2kpHK2%2FgYkS4Q%3D&reserved=0 The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th? ann an Oilthigh Dh?n ?ideann, cl?raichte an Alba, ?ireamh cl?raidh SC005336. -------------- next part -------------- An HTML attachment was scrubbed... URL: From martyanov.sd at gmail.com Thu Nov 19 06:35:47 2026 From: martyanov.sd at gmail.com (Stanislav Martyanov) Date: Thu, 19 Nov 2026 14:35:47 +0300 Subject: [MITgcm-support] NLFS=4 with z coordinates.. and sea ice In-Reply-To: References: <20260922121804.GA46202@ocean.mit.edu> Message-ID: I remember trying to use sIceLoad to somehow limit the sea-ice thickness, because in some local areas of the domain (due to fast-ice development, or near the open boundaries) the ice was unrealistically thick. And modifying sIceLoad did not help much, and I had to use a slange-hammer - to introduce my own compilation flag and a variable aimed to limit the thickness itself. Because it was very local problem (just several grid points), it did not lead to any significant problems. Recently, I have also noticed a great improvement to the code - a wetting-drying scheme for MITgcm! It was really a long-lasting demand, at least for coastal and regional modelers just like I am. Unfortunately, currently it is forbidden to simultaneously use the sea-ice package (due to realistic submerged ice issues, I suppose), but we hope that this problem can be somehow overcome by the authors of this upgrade. Thank you! Regards, Stanislav ??, 19 ????. 2026??. ? 12:03, Daniel Goldberg : > thanks dimitris! very helpful. > > best > dan > ------------------------------ > *From:* MITgcm-support on behalf of > Dimitris Menemenlis > *Sent:* Wednesday, November 18, 2026 23:36 > *To:* MITgcm Support > *Subject:* Re: [MITgcm-support] NLFS=4 with z coordinates.. and sea ice > > Hi Dan, my response is probably too late to be useful to you but for > reference for others: > > To avoid the ice being grounded and crashing the code while not reverting > to fully levitating sea ice, you can set a maximum for sIceLoad, for > example, as is done here: > https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMITgcm-contrib%2Fllc_hires%2Fblob%2F43054e70b88d19d3e1861aa9cbe2d3fa15536125%2Fathena%2Fllc_4320%2Fcode%2Fseaice_growth.F%23L357&data=05%7C02%7C%7C61f82ff7d40e45e5143308df45ccd1e3%7C2e9f06b016694589878910a06934dc61%7C0%7C0%7C639306418144909869%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=KzRJ1dsfczvaG7E2NyYxgdgoBmM%2FNFZkOnKEzP7hvuM%3D&reserved=0 > > > Also checkout this pull request for a wetdry package developed by Dustin > that should eventually alleviate issues with grid cell drying. > > D. > > > > On Sep 23, 2026, at 2:51?AM, Stanislav Martyanov > wrote: > > > > Hello Daniel, > > > > In the past, I successfully configured a regional high-resolution Kara > Sea model where I used a pure z coordinate and a non-linear free surface + > SEAICE package. The model is still being used and working, giving good > results. > > > > You are right about possible issues with sea ice if it is rather thick > while you have fine vertical resolution of the upper layer. Because of that > (+ sea-level oscillations due to tides, storm surges, etc) I used the > thickness of the upper level equal to 5 m while using z coordinate, due to > possible sea-ice thickness of 2-3 m in some locations in the Kara Sea + > sea-level oscillations. > > > > Kind Regards, > > Stanislav Martyanov > > > > ??, 22 ????. 2026??. ? 15:23, Daniel Goldberg : > > thanks J-M! i didn't know about the sIceLoadFac parameter either, so > that will be an option. > > > > best > > danFrom: MITgcm-support on behalf > of Jean-Michel Campin > > Sent: Tuesday, September 22, 2026 13:18 > > To: mitgcm-support at mitgcm.org > > Subject: Re: [MITgcm-support] NLFS=4 with z coordinates.. and sea ice > > Hi Dan, > > > > It should work, not used much without z*, precisely for the reason you > mentioned, > > see also the Ocean modelling paper, doi:10.1016/j.ocemod.2008.05.005 : > > "Sea ice-ocean coupling using a rescaled vertical coordinate z*" > > > > Note that you could always bring back an inconsistent "levitating" sea > ice with > > a recently added param (in "data", first namelist): sIceLoadFac=0., > > > > Cheers, > > Jean-Michel > > > > On Tue, Sep 22, 2026 at 11:18:26AM +0000, Daniel Goldberg wrote: > > > Hello! > > > > > > I am curious if anyone has used nonlinear free surface (NLFS=4) with > z-coordinates and with the sea ice model? > > > > > > I suspect that it will be limited by the thickness of the top cell > relative to the sea ice thickness, and am prepared to deal with > surf_adjustment errors if they occur. > > > > > > But aside from this, Im wondering if there are any numerics/packages > that simply won't work, of if i will get a RT error simply for trying this > combination of parameters? > > > > > > Thanks! > > > dan > > > _______________________________________________ > MITgcm-support mailing list > MITgcm-support at mitgcm.org > > https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.mitgcm.org%2Fmailman%2Flistinfo%2Fmitgcm-support&data=05%7C02%7C%7C61f82ff7d40e45e5143308df45ccd1e3%7C2e9f06b016694589878910a06934dc61%7C0%7C0%7C639306418144929717%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=CU7syBAy6z6oO7DBLlY6VPb%2BchHe4r2kpHK2%2FgYkS4Q%3D&reserved=0 > > The University of Edinburgh is a charitable body, registered in Scotland, > with registration number SC005336. Is e buidheann carthannais a th? ann an > Oilthigh Dh?n ?ideann, cl?raichte an Alba, ?ireamh cl?raidh SC005336. > _______________________________________________ > MITgcm-support mailing list > MITgcm-support at mitgcm.org > http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tanghy at idsse.ac.cn Sun Nov 22 10:24:17 2026 From: tanghy at idsse.ac.cn (=?UTF-8?B?5ZSQ5rWp5rSL?=) Date: Sun, 22 Nov 2026 23:24:17 +0800 (GMT+08:00) Subject: [MITgcm-support] LOCOMgcm: a differentiable PyTorch implementation of MITgcm's ocean model for GPUs Message-ID: <4ef5dcf2.3b1b6.1a203dbaab7.Coremail.tanghy@idsse.ac.cn> Hi all, We would like to introduce LOCOMgcm to the MITgcm community. LOCOMgcm is a differentiable ocean general circulation model developed by the Laboratory of Ocean Circulation Observing and Modeling (LOCOM) at the Institute of Deep-sea Science and Engineering, Chinese Academy of Sciences. It implements the MITgcm ocean discretizations in PyTorch and runs on NVIDIA GPUs. Repository:https://github.com/wojiaonioo/LOCOMgcm Main features Differentiable. Gradients pass through the time steps of an integration, so a neural network placed inside the time step can be trained on the result of the integration, in the way NeuralGCM trains its networks through its atmospheric dynamical core (Kochkov et al., 2024, https://doi.org/10.1038/s41586-024-07744-y). The MITgcm dynamics can thus be combined with machine-learning components in hybrid models, and the same gradients can be used for 4D-Var. Fast on GPUs. The PyTorch compiler (torch.compile) compiles the whole time step as one graph and fuses its operations into GPU kernels, and custom CUDA kernels implement the most expensive computations, such as the equation of state, KPP, tracer advection and the implicit vertical solves. On a 960 ? 960 ? 90 grid in double precision, four A800 GPUs run a hydrostatic time step 1.6 times as fast as MITgcm on 768 Xeon Gold 6132 cores. Numerically equivalent to MITgcm in what it supports. LOCOMgcm supports part of MITgcm's ocean packages and options. What it supports has been compared with MITgcm in MITgcm verification experiments and in variants of them with other options: its fields agree with those of MITgcm step by step, and its gradients agree with the MITgcm adjoint generated by Tapenade. The supported packages and options, and the cases compared, are listed at https://github.com/wojiaonioo/LOCOMgcm/blob/main/docs/SUPPORT.md The README describes installation and how to run a case. If an option you need is missing, or if you have questions, bug reports or suggestions, please open an issue at https://github.com/wojiaonioo/LOCOMgcm/issues Best regards, Haoyang Tang Laboratory of Ocean Circulation Observing and Modeling (LOCOM) Institute of Deep-sea Science and Engineering, Chinese Academy of Sciences -------------- next part -------------- An HTML attachment was scrubbed... URL: