ITM Grid Service Library: Fortran 90
|
00001 module itm_grid_helper 00002 00003 !> Some helper routines used in the grid service library. 00004 00005 use itm_types 00006 use euITM_schemas ! IGNORE 00007 00008 implicit none 00009 00010 contains 00011 00012 !> Fill in basic information into an edge CPO. For any omitted 00013 !> optional argument a default value is substituted. 00014 subroutine setupEdgeCPO( edgecpo, dataprovider, codename, time ) 00015 type(type_edge), intent(inout) :: edgecpo 00016 character(*), intent(in), optional :: dataprovider, codename 00017 real(R8), intent(in), optional :: time 00018 00019 allocate(edgecpo%datainfo%dataprovider(1)) 00020 allocate(edgecpo%codeparam%codename(1)) 00021 00022 ! Default values 00023 edgecpo%datainfo%dataprovider="IMP3" 00024 edgecpo%codeparam%codename(1)="SETUP_EDGE_CPO_DEFAULT" 00025 edgecpo%time = 0.0_R8 00026 00027 ! Optional values 00028 if (present(dataprovider)) edgecpo%datainfo%dataprovider(1)=dataprovider 00029 if (present(codename)) edgecpo%codeparam%codename(1)=codename 00030 if (present(time)) edgecpo%time = time 00031 end subroutine setupEdgeCPO 00032 00033 end module itm_grid_helper