# Trying to change the spinup (u-cs854)

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/trying-to-change-the-spinup-u-cs854/964>\
**Category:** JULES\
**Tags:** Monsoon2\
**Created:** [30 March 2023 13:29 UTC](https://cms-helpdesk.ncas.ac.uk/t/trying-to-change-the-spinup-u-cs854/964 "2023-03-30T13:29:27Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ash221](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@ash221](https://cms-helpdesk.ncas.ac.uk/u/ash221)\
**Post date:** [30 March 2023 13:29 UTC](https://cms-helpdesk.ncas.ac.uk/t/trying-to-change-the-spinup-u-cs854/964/1 "2023-03-30T13:29:27Z")

</div>

Hi, I am running a suite that is spun up from 1850-2014, but in 1974 they remove 99% of trees. I tried to do this by spinning up 1850-1973, and then spinning up 1974-2014 with the following initial\_conditions.nml:

[namelist:jules\_initial]  
dump\_file=.true.  
file=‘$OUTPUT\_FOLDER/jules\_triffidC\_JULES-ES-like\_topT\_irrF\_spinup.dump.19731229.82800.nc’  
l\_broadcast\_soilt=.false.  
nvars=20  
total\_snow=.true.  
tpl\_name=‘’  
const\_val=0.00063 0.0 0.0015 0.0 0.00561 0.87806 0.0013 0.0009 0.0 0.0 0.0 0.022 0.09 0.0 0.0 0. 0.0  
use\_file=.false.,19\*.true.  
var=‘frac’,‘rgrain’,‘canopy’,‘snow\_tile’,‘sthuf’,‘t\_soil’,‘lai’,  
=‘tstar\_tile’,‘cs’,‘gs’,‘zw’,‘canht’,‘sthzw’,‘sthu\_irr’,  
=‘n\_inorg’,‘ns’,‘substr\_ch4’,‘mic\_ch4’,‘mic\_act\_ch4’,  
=‘acclim\_ch4’  
var\_name=20\*‘’

(This is for 13 PFTs where the frac in the dump file is  
0.0619 0.0 0.1499 0.0 0.5512 0.1942 0.0003 0.0002 0. 0. 0. 0.0048 0.0019 0.0 0.0 0. 0.0  
All I did is multiply the tree fracs by 0.01 and scaled the others up as necessary. If there is a way to automate this that would be amazing!)

However I get this error term:  
[FATAL ERROR] init\_ic: Land ice points and soil points are mutually exclusive  
Rank 0 [Tue Mar 28 13:40:13 2023] [c3-0c0s14n1] application called MPI\_Abort(MPI\_COMM\_WORLD, 1) - process 0  
[FAIL] $RUN\_JULES # return-code=134

And this is the end of the job.out file:  
[INFO] file\_ncdf\_open: Opening file /home/d03/ahussain/roses/u-cs854/output\_data/jules\_triffidC\_JULES-ES-like\_topT\_irrF\_spinup.dump.19731229.82800.nc for reading  
[INFO] file\_ncdf\_close: Closing file /home/d03/ahussain/roses/u-cs854/output\_data/jules\_triffidC\_JULES-ES-like\_topT\_irrF\_spinup.dump.19731229.82800.nc  
[INFO] init\_ic: Number of soil points = 1

Could anyone please help me? Either with a better way to achieve what I want (remove 99% of trees in 1974) or fixing the ice points/soil points error?

Thank you!

Ayesha

PS. If I change the const\_val to const\_val=0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1,0 (ie just soil) then the model runs, but obviously with everything staying as bare soil.

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [30 March 2023 14:10 UTC](https://cms-helpdesk.ncas.ac.uk/t/trying-to-change-the-spinup-u-cs854/964/2 "2023-03-30T14:10:03Z")

</div>

Hi Ayesha  
Do you need commas between the 17 numbers? Your bare soil const\_val has commas but your 99% deforested doesn’t.  
Patrick

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [30 March 2023 14:12 UTC](https://cms-helpdesk.ncas.ac.uk/t/trying-to-change-the-spinup-u-cs854/964/3 "2023-03-30T14:12:55Z")

</div>

Hi again Ayesha:  
Also, you have use\_file with 19 true’s. Most or all of them should false’s.  
Patrick

---

<div class="post-metadata">

**Author:** ![ash221](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@ash221](https://cms-helpdesk.ncas.ac.uk/u/ash221)\
**Post date:** [30 March 2023 14:25 UTC](https://cms-helpdesk.ncas.ac.uk/t/trying-to-change-the-spinup-u-cs854/964/4 "2023-03-30T14:25:37Z")

</div>

Oh sorry, it didn’t seem to affect the run whether there were commas or not. But I have commas in it now.  
Also, I put use\_file so it uses the dump file, do I not need to do that? How does the model know to use the dump file for everything but the frac?

Thanks,

Ayesha

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [31 March 2023 07:45 UTC](https://cms-helpdesk.ncas.ac.uk/t/trying-to-change-the-spinup-u-cs854/964/5 "2023-03-31T07:45:36Z")

</div>

Hi Ayesha  
I think there is a problem with dimensionality. The const\_val variable refers to all the variables listed in the var list of strings. Those variable values need to be given for all the strings, I think, even if you are getting them from the file. The frac variable has 13 values, and then the other 19 values have to be defined. Maybe you can define the others as 0, with use\_file = true. But that gives 32 values, maybe, if the spinup was done starting with these var names.  
You might look at the fortran code to see how it reads in initial values for multidimensional variables like frac.  
Patrick

---

<div class="post-metadata">

**Author:** ![ash221](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@ash221](https://cms-helpdesk.ncas.ac.uk/u/ash221)\
**Post date:** [31 March 2023 14:25 UTC](https://cms-helpdesk.ncas.ac.uk/t/trying-to-change-the-spinup-u-cs854/964/6 "2023-03-31T14:25:54Z")

</div>

Thank you! Do you know where I find the fortran code for frac by any chance? I’m looking in src/ but can’t find it.

Also, I tried adding more const\_val’s but I got the same error code:  
[namelist:jules\_initial]  
dump\_file=.true.  
file=‘$OUTPUT\_FOLDER/jules\_triffidC\_JULES-ES-like\_topT\_irrF\_spinup.dump.19731229.82800.nc’  
const\_val=0.00063,0.0,0.0015,0.0,0.00561,0.87806,0.0013,0.0009,0.0,0.0,0.0,0.022,0.09,0.0,0.0,0,0.0,  
=0,0,0,0,0,  
=0,0,0,0,0,  
=0,0,0,0,0,  
=0,0,0,0,0,  
=0,0,0,0,0,  
=0,0,0  
nvars=29  
use\_file=.false.,28\*.true.  
var =‘frac’,  
=‘acclim\_ch4’,‘canht’,‘canopy’,‘cs’,‘gs’,  
=‘lai’,‘mic\_act\_ch4’,‘mic\_ch4’,‘n\_inorg’,‘ns’,  
=‘nsnow’,‘rgrain’,‘rgrainl’,‘rho\_snow’,‘snow\_ds’,  
=‘snow\_depth’,‘snow\_grnd’,‘snow\_ice’,‘snow\_liq’,‘snow\_tile’,  
=‘sthuf’,‘sthu\_irr’,‘sthzw’,‘substr\_ch4’,‘t\_soil’,  
=‘tsnow’,‘tstar\_tile’,‘zw’  
var\_name=29\*‘’

[FATAL ERROR] init\_ic: Land ice points and soil points are mutually exclusive  
Rank 0 [Fri Mar 31 14:24:19 2023] [c3-0c0s14n1] application called MPI\_Abort(MPI\_COMM\_WORLD, 1) - process 0  
[FAIL] $RUN\_JULES # return-code=134

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [31 March 2023 17:24 UTC](https://cms-helpdesk.ncas.ac.uk/t/trying-to-change-the-spinup-u-cs854/964/7 "2023-03-31T17:24:13Z")

</div>

Hi Ayesha  
Your error message says that it fails in the ‘init\_ic’ code. So if you want to find that code, you can do this at the linux prompt:  
grep -ir ‘init\_ic’ \*

Or something like that.  
The code for reading in the const\_val initial conditions is somewhere before the failure point.  
The error message might also give a line number and filename for the failure point.  
Patrick

---

<div class="post-metadata">

**Author:** ![ash221](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@ash221](https://cms-helpdesk.ncas.ac.uk/u/ash221)\
**Post date:** [4 April 2023 10:45 UTC](https://cms-helpdesk.ncas.ac.uk/t/trying-to-change-the-spinup-u-cs854/964/8 "2023-04-04T10:45:25Z")

</div>

Hi Patrick,

Thank you! I just checked job.out to try finding the line number and saw this:  
[INFO] init\_ic: ‘frac’ will be set to a constant = 6.000000285E-4  
(I tried this with commas in the const\_val and not, and both gave the same thing).

So I did what you recommended earlier, and changed the initial\_conditions.nml file to this:  
[namelist:jules\_initial]  
dump\_file=.true.  
file=‘$OUTPUT\_FOLDER/jules\_triffidC\_JULES-ES-like\_topT\_irrF\_spinup.dump.19731229.82800.nc’  
const\_val=0.0006,0.0,0.0015,0.0,0.0056,0.8781,0.0013,0.0,0.0,0.0,0.0,0.022,0.09,0.0,0.0,0.0009,0.0  
nvars=29  
use\_file=28\*.true.17\*.false.  
var =‘acclim\_ch4’,‘canht’,‘canopy’,‘cs’,‘gs’,  
=‘lai’,‘mic\_act\_ch4’,‘mic\_ch4’,‘n\_inorg’,‘ns’,  
=‘nsnow’,‘rgrain’,‘rgrainl’,‘rho\_snow’,‘snow\_ds’,  
=‘snow\_depth’,‘snow\_grnd’,‘snow\_ice’,‘snow\_liq’,‘snow\_tile’,  
=‘sthuf’,‘sthu\_irr’,‘sthzw’,‘substr\_ch4’,‘t\_soil’,  
=‘tsnow’,‘tstar\_tile’,‘zw’,  
=‘frac’  
var\_name=29\*‘’

And it seems to work! Thank you so much again.

Ayesha

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [4 April 2023 11:59 UTC](https://cms-helpdesk.ncas.ac.uk/t/trying-to-change-the-spinup-u-cs854/964/9 "2023-04-04T11:59:09Z")

</div>

Hi Ayesha:  
I am glad that it seems to work now! Congrats!  
Please do let me know if you notice any other problems.  
Patrick

---

<div class="post-metadata">

**Author:** ![ash221](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@ash221](https://cms-helpdesk.ncas.ac.uk/u/ash221)\
**Post date:** [27 April 2023 10:19 UTC](https://cms-helpdesk.ncas.ac.uk/t/trying-to-change-the-spinup-u-cs854/964/10 "2023-04-27T10:19:27Z")

</div>

Hi Patrick,

Thank you so much for your help!

I managed to use ncap2 to alter the PFT fractions for me, but I don’t know how to schedule it in cylc. Currently I run the spinup 1850-1973. Then I pause the run while I type this:

cd $HOME/roses/u-cs854/output\_data  
module load nco  
cp jules\_triffidC\_JULES-ES-like\_topT\_irrF\_spinup.dump.19731229.82800.nc tmp.nc  
ncap2 -O -s “fracnew=frac” tmp.nc tmp1.nc  
mv tmp1.nc tmp.nc  
ncap2 -O -s “fracnew(0:4,:)=frac(0:4,:)\*0.01” tmp.nc tmp1.nc  
mv tmp1.nc tmp.nc  
ncap2 -s “fracnew(15,:)=1.0-fracnew(0,:)-fracnew(1,:)-fracnew(2,:)-fracnew(3,:)-fracnew(4,:)-fracnew(5,:)-fracnew(6,:)-fracnew(7,:)-fracnew(8,:)-fracnew(9,:)-fracnew(10,:)-fracnew(11,:)-fracnew(12,:)-fracnew(13,:)-fracnew(14,:)” tmp.nc tmp1.nc  
mv tmp1.nc tmp.nc  
ncks -x -v frac tmp.nc tmp1.nc  
mv tmp1.nc tmp.nc  
ncrename -v fracnew,frac tmp.nc  
mv tmp.nc jules\_triffidC\_JULES-ES-like\_topT\_irrF\_spinup.1974\_frac\_change.nc

and then I trigger the 1974 spinup to start. Do you know if I can schedule this in cylc so this happens automatically? No worries if not!

Thanks,

Ayesha

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [2 May 2023 13:16 UTC](https://cms-helpdesk.ncas.ac.uk/t/trying-to-change-the-spinup-u-cs854/964/11 "2023-05-02T13:16:44Z")

</div>

Hi Ayesha:  
You should be able to add an app that calls that script to the rose/cylc suite. Have you studied this tutorial already? [Workflow Management with rose/cylc - JASMIN help docs](https://help.jasmin.ac.uk/article/147-cylc-rose-on-jasmin)  
Patrick

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/1fd2411499ffcbc299fe756cd5cdf26e44956558.png) [@system](https://cms-helpdesk.ncas.ac.uk/u/system)\
**Post date:** [1 June 2023 13:17 UTC](https://cms-helpdesk.ncas.ac.uk/t/trying-to-change-the-spinup-u-cs854/964/12 "2023-06-01T13:17:18Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
