Opened 4 years ago

Closed 4 years ago

#1634 closed help (fixed)

Writing to standard out

Reported by: richie Owned by: um_support
Component: UM Model Keywords:
Cc: Platform:
UM Version: <select version>

Description

I am trying to track down a FPE in the JULES part of the UM and have put some write statements in the code. When the model tries to write out I get a warning.

WARNING - REQUESTED AND ACTUAL THREADING LEVEL DIFFERENT
THREAD LEVEL REQUESTED is MPL_THREAD_MULTIPLE
THREAD LEVEL SET is MPL_THREAD_FUNNELED
%PE0 OUTPUT%
umPrintOpenStream: Opening unit 6 on file /home/rjelli/pe_output/aa166.fort6\
.pe000
umPrintSetLevel: PrintStatus? initialised= 3

and no output to the output file.

I used "write( 6, *)" in the code and am guessing I need to send the output to another stream. Could you help point me in the right direction?

I have copied the log files into
/home/rjelli/pe_output/log.20150827T101753Z

so they will not be over written by my further efforts to get this to work.

Thanks.

Change History (6)

comment:1 Changed 4 years ago by richie

PS The version is 10.2

comment:2 Changed 4 years ago by jeff

Hi

In this version of the model you no longer use statements like write(6,*) to write to standard output, instead you need to use the umPrint routine, which is part of the umPrintMgr module. I suggest you look at how other UM subroutines use this routine and do the same thing.

Jeff.

comment:3 Changed 4 years ago by richie

Thanks Jeff. I am knee deep in the jules_print_mgr mod as I type.

When I use

write(jules_message,"(a)")"Inside albpft rjelli"
call jules_print("albpft_jls", jules_message)

it works just as I thought it would i.e. it writes out to job.out

when I use

WRITE(jules_message,'(a,f7.3,f7.3,f7.3, f7.3,f7.3,f7.3)') &
&'rjelli', c, d1, u1, coszm, h, s1

I get

[INFO] exec /opt/ibmhpc/pecurrent/ppe.poe/bin/poe /home/rjelli/cylc-run/puma-aa166/share/fcm_make_um/build-atmos/bin/um-atmos.exe
Could not find PE0 output file: /home/rjelli/pe_output/aa166.fort6.pe000
CALL jules_print('albpft_jls',jules_message)

Sorry if this is trivial

Rich

comment:4 Changed 4 years ago by jeff

Hi

I can't see anything wrong from the above. Can you point me to your source code changes and where the output files are.

Jeff.

comment:5 Changed 4 years ago by richie

Hi Jeff,

I have now got the code to work. I am not sure quite why it did not before but I can now get outputs from the model to the pe_output.

Thanks for taking a look and reassuring me I wasn't writing erroneous code.

Rich

comment:6 Changed 4 years ago by jeff

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.