In this module we implement a custom source term, my_source_term and prep it for being recognized by Neko at run time. The source term doesn't really do anything, we just show how such a thing could be done.  
◆ custom_types_register_types()
◆ my_source_term_allocate()
◆ my_source_term_compute()
◆ my_source_term_free()
◆ my_source_term_init_from_json()
      
        
          | subroutine custom_types::my_source_term_init_from_json  | 
          ( | 
          class(my_source_term_t), intent(inout)  | 
          this,  | 
        
        
           | 
           | 
          type(json_file), intent(inout)  | 
          json,  | 
        
        
           | 
           | 
          type(field_list_t), intent(in), target  | 
          fields,  | 
        
        
           | 
           | 
          type(coef_t), intent(in), target  | 
          coef,  | 
        
        
           | 
           | 
          character(len=*), intent(in)  | 
          variable_name  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Parameters
 - 
  
    | json | The JSON object for the source.  | 
    | fields | A list of fields for adding the source values.  | 
    | coef | The SEM coeffs.  | 
  
   
Definition at line 83 of file custom_types.f90.