|
Last change
on this file since 3040 was
2995,
checked in by llange, 2 years ago
|
|
Mars PEM
*Implementation of the H2O glacier flow laws
*The algorithm for glacier flow is now more generic and not specific for co2 ice
*Principle: if ice thickness > ice mass, computed from models (cf note attached in the wiki), then the excess of ice is transfered
LL
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | ! |
|---|
| 2 | ! $Id: abort_pem.F |
|---|
| 3 | ! |
|---|
| 4 | c |
|---|
| 5 | c |
|---|
| 6 | SUBROUTINE abort_pem(modname, message, ierr) |
|---|
| 7 | |
|---|
| 8 | #ifdef CPP_IOIPSL |
|---|
| 9 | USE IOIPSL |
|---|
| 10 | #else |
|---|
| 11 | ! if not using IOIPSL, we still need to use (a local version of) getin_dump |
|---|
| 12 | USE ioipsl_getincom |
|---|
| 13 | #endif |
|---|
| 14 | |
|---|
| 15 | #ifdef CPP_XIOS |
|---|
| 16 | ! ug Pour les sorties XIOS |
|---|
| 17 | USE wxios |
|---|
| 18 | #endif |
|---|
| 19 | |
|---|
| 20 | #include "iniprint.h" |
|---|
| 21 | |
|---|
| 22 | C |
|---|
| 23 | C Stops the simulation cleanly, closing files and printing various |
|---|
| 24 | C comments |
|---|
| 25 | C |
|---|
| 26 | C Input: modname = name of calling program |
|---|
| 27 | C message = stuff to print |
|---|
| 28 | C ierr = severity of situation ( = 0 normal ) |
|---|
| 29 | |
|---|
| 30 | character(len=*), intent(in):: modname |
|---|
| 31 | integer, intent(in):: ierr |
|---|
| 32 | character(len=*), intent(in):: message |
|---|
| 33 | |
|---|
| 34 | write(lunout,*) 'in abort_pem' |
|---|
| 35 | |
|---|
| 36 | #ifdef CPP_XIOS |
|---|
| 37 | !Fermeture propre de XIOS |
|---|
| 38 | CALL wxios_close() |
|---|
| 39 | #endif |
|---|
| 40 | |
|---|
| 41 | #ifdef CPP_IOIPSL |
|---|
| 42 | call histclo |
|---|
| 43 | call restclo |
|---|
| 44 | #endif |
|---|
| 45 | call getin_dump |
|---|
| 46 | write(lunout,*) 'Stopping in ', modname |
|---|
| 47 | write(lunout,*) 'Reason = ',message |
|---|
| 48 | if (ierr .eq. 0) then |
|---|
| 49 | write(lunout,*) 'Everything is cool' |
|---|
| 50 | stop |
|---|
| 51 | else |
|---|
| 52 | write(lunout,*) 'Houston, we have a problem ', ierr |
|---|
| 53 | stop 1 |
|---|
| 54 | endif |
|---|
| 55 | END |
|---|
Note: See
TracBrowser
for help on using the repository browser.