We can keep ls as the variable for the size of the snapshots arrays. But we can create another variable aside from ls (e.g. lsp) for the second dimension of uk, ukp, tk, tkp.
This makes the code more flexible such that in ON and ONB modes, ls can be set to a smaller number and lsp can be set to the size of uk, ukp, tk, tkp.
These changes will allow users to run standard C-ROM and decoupled C-ROM correctly in ON and ONB modes with a smaller ls.
We can keep ls as the variable for the size of the snapshots arrays. But we can create another variable aside from ls (e.g. lsp) for the second dimension of uk, ukp, tk, tkp.
This makes the code more flexible such that in ON and ONB modes, ls can be set to a smaller number and lsp can be set to the size of uk, ukp, tk, tkp.
These changes will allow users to run standard C-ROM and decoupled C-ROM correctly in ON and ONB modes with a smaller ls.