ad passive tracer
-
- Posts: 15
- Joined: Thu Apr 05, 2018 6:34 pm
- Location: Ha Noi University Sience and Technology, Vietnam
ad passive tracer
i'm trying ad passive tracer for upwelling test case step by step following:
viewtopic.php?f=14&t=2611
i added dye_01 in rst.nc and set ININAME= rst.nc then i set NPT = 1
but when i run uwelling.in i get this:
mpirun -np 3 ./romsM roms_upwelling.in
--------------------------------------------------------------------------------
Model Input Parameters: ROMS/TOMS version 3.7
Thursday - May 23, 2019 - 1:16:02 PM
--------------------------------------------------------------------------------
At line 2008 of file mod_ncparam.f90
Fortran runtime error: End of record
Error termination. Backtrace:
At line 2008 of file mod_ncparam.f90
Fortran runtime error: End of record
What is this error?
Error termination. Backtrace:
At line 2008 of file mod_ncparam.f90
Fortran runtime error: End of record
Error termination. Backtrace:
#0 0x7f54f7ed22da in ???
#1 0x7f54f7ed2ec5 in ???
#2 0x7f54f7ed368d in ???
#3 0x7f54f8049060 in ???
#4 0x7f54f80549e9 in ???
#5 0x7f54f804c2cc in ???
#6 0x7f54f804c46c in ???
#7 0x5643a8ed4552 in ???
#8 0x5643a8ce7c71 in ???
#9 0x5643a8c85a39 in ???
#10 0x5643a8c81fd4 in ???
#11 0x5643a8c818de in ???
#12 0x5643a8c8164e in ???
#13 0x7f54f7749b96 in ???
#14 0x5643a8c816a9 in ???
#15 0xffffffffffffffff in ???
-------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.
-------------------------------------------------------
#0 0x7f6c4b0a02da in ???
#1 0x7f6c4b0a0ec5 in ???
#2 0x7f6c4b0a168d in ???
#3 0x7f6c4b217060 in ???
#4 0x7f6c4b2229e9 in ???
#5 0x7f6c4b21a2cc in ???
#6 0x7f6c4b21a46c in ???
#7 0x5583bb66b552 in ???
#8 0x5583bb47ec71 in ???
#9 0x5583bb41ca39 in ???
#10 0x5583bb418fd4 in ???
#11 0x5583bb4188de in ???
#12 0x5583bb41864e in ???
#13 0x7f6c4a917b96 in ???
#14 0x5583bb4186a9 in ???
#15 0xffffffffffffffff in ???
#0 0x7ff523fea2da in ???
#1 0x7ff523feaec5 in ???
#2 0x7ff523feb68d in ???
#3 0x7ff524161060 in ???
#4 0x7ff52416c9e9 in ???
#5 0x7ff5241642cc in ???
#6 0x7ff52416446c in ???
#7 0x55dd42f1d552 in ???
#8 0x55dd42d30c71 in ???
#9 0x55dd42ccea39 in ???
#10 0x55dd42ccafd4 in ???
#11 0x55dd42cca8de in ???
#12 0x55dd42cca64e in ???
#13 0x7ff523861b96 in ???
#14 0x55dd42cca6a9 in ???
#15 0xffffffffffffffff in ???
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:
Process name: [[64664,1],1]
Exit code: 2
what is
viewtopic.php?f=14&t=2611
i added dye_01 in rst.nc and set ININAME= rst.nc then i set NPT = 1
but when i run uwelling.in i get this:
mpirun -np 3 ./romsM roms_upwelling.in
--------------------------------------------------------------------------------
Model Input Parameters: ROMS/TOMS version 3.7
Thursday - May 23, 2019 - 1:16:02 PM
--------------------------------------------------------------------------------
At line 2008 of file mod_ncparam.f90
Fortran runtime error: End of record
Error termination. Backtrace:
At line 2008 of file mod_ncparam.f90
Fortran runtime error: End of record
What is this error?
Error termination. Backtrace:
At line 2008 of file mod_ncparam.f90
Fortran runtime error: End of record
Error termination. Backtrace:
#0 0x7f54f7ed22da in ???
#1 0x7f54f7ed2ec5 in ???
#2 0x7f54f7ed368d in ???
#3 0x7f54f8049060 in ???
#4 0x7f54f80549e9 in ???
#5 0x7f54f804c2cc in ???
#6 0x7f54f804c46c in ???
#7 0x5643a8ed4552 in ???
#8 0x5643a8ce7c71 in ???
#9 0x5643a8c85a39 in ???
#10 0x5643a8c81fd4 in ???
#11 0x5643a8c818de in ???
#12 0x5643a8c8164e in ???
#13 0x7f54f7749b96 in ???
#14 0x5643a8c816a9 in ???
#15 0xffffffffffffffff in ???
-------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.
-------------------------------------------------------
#0 0x7f6c4b0a02da in ???
#1 0x7f6c4b0a0ec5 in ???
#2 0x7f6c4b0a168d in ???
#3 0x7f6c4b217060 in ???
#4 0x7f6c4b2229e9 in ???
#5 0x7f6c4b21a2cc in ???
#6 0x7f6c4b21a46c in ???
#7 0x5583bb66b552 in ???
#8 0x5583bb47ec71 in ???
#9 0x5583bb41ca39 in ???
#10 0x5583bb418fd4 in ???
#11 0x5583bb4188de in ???
#12 0x5583bb41864e in ???
#13 0x7f6c4a917b96 in ???
#14 0x5583bb4186a9 in ???
#15 0xffffffffffffffff in ???
#0 0x7ff523fea2da in ???
#1 0x7ff523feaec5 in ???
#2 0x7ff523feb68d in ???
#3 0x7ff524161060 in ???
#4 0x7ff52416c9e9 in ???
#5 0x7ff5241642cc in ???
#6 0x7ff52416446c in ???
#7 0x55dd42f1d552 in ???
#8 0x55dd42d30c71 in ???
#9 0x55dd42ccea39 in ???
#10 0x55dd42ccafd4 in ???
#11 0x55dd42cca8de in ???
#12 0x55dd42cca64e in ???
#13 0x7ff523861b96 in ???
#14 0x55dd42cca6a9 in ???
#15 0xffffffffffffffff in ???
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:
Process name: [[64664,1],1]
Exit code: 2
what is
- Attachments
-
- upwelling.h
- (1.73 KiB) Downloaded 294 times
Re: ad passive tracer
You've got one clue here:
Can you tell us what is at line 2008 of your mod_ncparam.f90 file?
What is NRREC in your roms.in file? The restart file is not necessarily the same as a file needed for initialization, especially when you go changing settings.
Code: Select all
At line 2008 of file mod_ncparam.f90
What is NRREC in your roms.in file? The restart file is not necessarily the same as a file needed for initialization, especially when you go changing settings.
-
- Posts: 15
- Joined: Thu Apr 05, 2018 6:34 pm
- Location: Ha Noi University Sience and Technology, Vietnam
Re: ad passive tracer
thanks for your reply!kate wrote:You've got one clue here:Can you tell us what is at line 2008 of your mod_ncparam.f90 file?Code: Select all
At line 2008 of file mod_ncparam.f90
What is NRREC in your roms.in file? The restart file is not necessarily the same as a file needed for initialization, especially when you go changing settings.
now, i don't use perfect_restart, i set NRREC == 0 run again and get:
At line 1860 of file mod_ncparam.f90
Fortran runtime error: End of record
my mod_ncparam.f90 here
- Attachments
-
- mod_ncparam.f90
- (84.08 KiB) Downloaded 290 times
-
- Posts: 15
- Joined: Thu Apr 05, 2018 6:34 pm
- Location: Ha Noi University Sience and Technology, Vietnam
Re: ad passive tracer
kate wrote:You've got one clue here:Can you tell us what is at line 2008 of your mod_ncparam.f90 file?Code: Select all
At line 2008 of file mod_ncparam.f90
What is NRREC in your roms.in file? The restart file is not necessarily the same as a file needed for initialization, especially when you go changing settings.
my input file
- Attachments
-
- roms_upwelling.in
- (132.31 KiB) Downloaded 273 times
-
- Posts: 15
- Joined: Thu Apr 05, 2018 6:34 pm
- Location: Ha Noi University Sience and Technology, Vietnam
Re: ad passive tracer
my header filekate wrote:You've got one clue here:Can you tell us what is at line 2008 of your mod_ncparam.f90 file?Code: Select all
At line 2008 of file mod_ncparam.f90
What is NRREC in your roms.in file? The restart file is not necessarily the same as a file needed for initialization, especially when you go changing settings.
Looking forward to your help!
- Attachments
-
- upwelling.h
- (1.09 KiB) Downloaded 284 times
Re: ad passive tracer
Your roms_upwelling.in has 4 passive tracers, not one. You have set NPT=4.
Your roms_upwelling.in has also set "closed" as the options for open boundary conditions on passive tracers:
when that should be periodic to match the active tracers.
You have options I don't recognize like ANA_PTOBC. Who's code are you using? It's not the default myroms.org code.
For these test purposes I think you could perhaps set initial values with ANA_PASSIVE and avoid creating the netcdf file until you get started.
I see you have AGE_MEAN. So you need to think carefully about initializing and forcing. Set a pair of age at initialization only will simply give you a patch of uniformly aging water.
Your roms_upwelling.in has also set "closed" as the options for open boundary conditions on passive tracers:
Code: Select all
LBC(isTvar) == Per Clo Per Clo \ ! temperature
Per Clo Per Clo \
Clo Clo Clo Clo \
Clo Clo Clo Clo \
Clo Clo Clo Clo \ ! salinity
Clo Clo Clo Clo
You have options I don't recognize like ANA_PTOBC. Who's code are you using? It's not the default myroms.org code.
For these test purposes I think you could perhaps set initial values with ANA_PASSIVE and avoid creating the netcdf file until you get started.
I see you have AGE_MEAN. So you need to think carefully about initializing and forcing. Set a pair of age at initialization only will simply give you a patch of uniformly aging water.
John Wilkin: DMCS Rutgers University
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu
-
- Posts: 15
- Joined: Thu Apr 05, 2018 6:34 pm
- Location: Ha Noi University Sience and Technology, Vietnam
Re: ad passive tracer
wilkin wrote:Your roms_upwelling.in has 4 passive tracers, not one. You have set NPT=4.
Your roms_upwelling.in has also set "closed" as the options for open boundary conditions on passive tracers:
when that should be periodic to match the active tracers.Code: Select all
LBC(isTvar) == Per Clo Per Clo \ ! temperature Per Clo Per Clo \ Clo Clo Clo Clo \ Clo Clo Clo Clo \ Clo Clo Clo Clo \ ! salinity Clo Clo Clo Clo
You have options I don't recognize like ANA_PTOBC. Who's code are you using? It's not the default myroms.org code.
For these test purposes I think you could perhaps set initial values with ANA_PASSIVE and avoid creating the netcdf file until you get started.
I see you have AGE_MEAN. So you need to think carefully about initializing and forcing. Set a pair of age at initialization only will simply give you a patch of uniformly aging water.
Thank you very much for your suggestion! first i ran with NPT=1, after i tried with NPT=4,from
Code: Select all
Per Clo Per Clo
Code: Select all
Clo Clo Clo Clo
about ANA_PTOBC Define for analytic passive tracer boundary conditions i read it in roms_manual.
where can i get ad passive tracer suggestion more clearly? forgive me, my English skill is still bad!I have been learning about ROMS for 1 year but My knowledge of ROMS is still small! thank all!
Last edited by thaitlhp on Sat May 25, 2019 9:54 am, edited 1 time in total.
Re: ad passive tracer
Which mod_ncparam.f90 error are you getting and what is on the line number in question? We want you to look at the file. Maybe you should also explain exactly what it is you want to do with your passive tracer.
-
- Posts: 15
- Joined: Thu Apr 05, 2018 6:34 pm
- Location: Ha Noi University Sience and Technology, Vietnam
Re: ad passive tracer
Thank Kate!kate wrote:Which mod_ncparam.f90 error are you getting and what is on the line number in question? We want you to look at the file. Maybe you should also explain exactly what it is you want to do with your passive tracer.
Code: Select all
SELECT CASE (Vinfo(1))
CASE ('tracer2')
varid=varid-1
DO i=1,MT
varid=varid+1
idTTav(i)=varid
DO ng=1,Ngrids
Fscale(varid,ng)=scale
Iinfo(1,varid,ng)=gtype
END DO
WRITE (Vname(1,varid),'(a,a)') &
& TRIM(ADJUSTL(Vname(1,idTvar(i)))), '_2'
WRITE (Vname(2,varid),'(a,1x,a)') &
& 'time-averaged squared', &
& TRIM(ADJUSTL(Vname(2,idTvar(i))))
IF (TRIM(ADJUSTL(Vname(3,idTvar(i)))).eq. &
& 'nondimensional') THEN
WRITE (Vname(3,varid),'(a)') &
& TRIM(ADJUSTL(Vname(3,idTvar(i))))
ELSE
WRITE (Vname(3,varid),'(a,a)') &
& TRIM(ADJUSTL(Vname(3,idTvar(i)))), '2'
END IF
WRITE (Vname(4,varid),'(a,a)') &
& TRIM(Vname(1,varid)), ', scalar, series'
WRITE (Vname(5,varid),'(a)') &
& TRIM(ADJUSTL(Vinfo(5)))
END DO
- Attachments
-
- ana_passive.h
- (3.35 KiB) Downloaded 271 times
Re: ad passive tracer
Are you by chance asking for Aout(idTTav)? I have never done so and can't guarantee that it would work.
Re: ad passive tracer
I'm trying to add a passive tracer in upwelling test case, and I have the same problem.
If I edit passive tracer part of “varinfo.dat” file, it shows:
At line 1904 of file mod_ncparam.f90
Fortran runtime error: End of record
If I use the original “varinfo.dat” file, it shows:
Fortran runtime error: shape and target do not conform
Have you solved your problem?
I need some suggestion.Thanks!
If I edit passive tracer part of “varinfo.dat” file, it shows:
At line 1904 of file mod_ncparam.f90
Fortran runtime error: End of record
If I use the original “varinfo.dat” file, it shows:
Fortran runtime error: shape and target do not conform
Have you solved your problem?
I need some suggestion.Thanks!