Skip to content
Discussion options

You must be logged in to vote

Hello,

When calling the derivative subroutines, one should provide arrays to solve the tri-diagonal linear system. For instance, https://github.com/xcompact3d/Incompact3d/blob/master/src/transeq.f90#L126 :

    call derx (te1,tb1,di1,sx,ffx,fsx,fwx,xsize(1),xsize(2),xsize(3),0,ubcx*ubcy)

The arrays ffx, fsx and fwx are computed at the beginning of the simulation, in schemes.f90. See https://en.wikipedia.org/wiki/Tridiagonal_matrix_algorithm

Cheers,
Mathrack

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@yzl429
Comment options

@nbeb
Comment options

nbeb Jun 4, 2025
Collaborator

@yzl429
Comment options

@yzl429
Comment options

@mathrack
Comment options

Answer selected by mathrack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants