gimme-alpha 0.1

nextnano_material_conversion.c File Reference

#include <stdio.h>
#include <libnextnano/nextnano_material_conversion.h>
#include <libnextnano/read_nextnano_inputfile.h>
#include <libcommon/gcc_hints.h>
Include dependency graph for nextnano_material_conversion.c:

Go to the source code of this file.

Classes

struct  parameter_translator
struct  parameter_section

Functions

struct matdbconvert_nextnano_db (GHashTable *nextnano_materials)

Variables

static struct parameter_section sections []

Function Documentation

struct matdb* convert_nextnano_db ( GHashTable *  nextnano_materials) [read]

Definition at line 59 of file nextnano_material_conversion.c.

References unlikely.

                                                                  {
  /*First, set up the materials*/
  GList* m;
  char* prefix;
  if(unlikely((m=g_hash_table_lookup(nextnano_materials, "binary-zb-default")) == NULL)) {
    fprintf(stderr, "convert_nextnano_db: INTERNAL ERROR: unable to find binary zincblende materials in nextnano database.\n");
    return NULL;
  }
  prefix="zb";
  return NULL;
}

Variable Documentation

struct parameter_section sections[] [static]
Initial value:
 {
  {.section = "binary-zb-default",
   .xlators = {
     {.from = "binary-type",
      .item = 0,
      .to = "name",
      .value_translator = NULL
     },
     {.from="conduction-bands",
      .item=0,
      .to="num_bands",
      .value_translator = NULL
     }
    }
  }
}

Definition at line 42 of file nextnano_material_conversion.c.

Referenced by read_nextnano_inputfile_stringy_core(), and read_nextnano_keyfile2().

 All Classes Files Functions Variables Enumerations Enumerator Defines