Skip to content

Problem with reading LBC correctly in warmstart simulation #86

Description

@adoyenne

Hello,

I found a problem in nudgeboundary.f90. The issue is that when you start a warmstart simulation, the model reads LBCs every time from 0 hour, i.e., from the coldstart. I found that the procedure of reading the LBCs files from the restart time was somehow missing.
I added this procedure to the subroutine nudgeboundary:

if(.not. lwarmstart) then

        	! Read the first two input times
        	call read_new_LBCs(0.)
        	call read_new_LBCs(dt_input_lbc)
        	lbc_index = 1

        	if (lnudge_boundary_sv) then 
            	! Read the first two input times for scalars
            	call read_new_LBCs_sv(0.)
            	call read_new_LBCs_sv(dt_input_lbc_sv)
            	lbc_index_sv = 1
        	end if
        
        else
        
        	! Read the first two input times (starting from restart time): !Arseni
        
        	call read_new_LBCs(btime/1000.)
        	call read_new_LBCs((btime/1000.)+dt_input_lbc)
        	lbc_index = int(btime/(3600.*1000.))

        	if (lnudge_boundary_sv) then 
            	! Read the first two input times for scalars (starting from restart time): !Arseni
            	call read_new_LBCs_sv(btime/1000.)
            	call read_new_LBCs_sv((btime/1000.)+dt_input_lbc_sv)
            	lbc_index_sv = int(btime/(3600.*1000.))
       		end if
        
        
        endif

However, I still have an issue with nudge boundaries, namely a sudden appearance of the anomalously high values around the domain borders. Is there any idea what could cause this behaviour? (LBCs files are correct, though)

See the movie of co2 scalar tracer (the restart simulation starts from 6h):

test_save_CO2_sv001-1.mp4

Cheers,
Arseni

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions