Skip to content

Commit

Permalink
remove setperiodicity
Browse files Browse the repository at this point in the history
  • Loading branch information
kfrancischen committed May 1, 2017
1 parent 05c79ef commit f71e580
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/main_lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,6 @@ struct luaU_Impl<std::string>
/*======================================================*/
// wrappaer for the main class
/*=======================================================*/
// this function wraps setPeriodicity(const double p1, const double p2 = 0)
// @how to use:
// SetPeriodicity(p1) or
// SetPeriodicity(p1, p2)
int MESH_SetPeriodicity(lua_State* L){
int n = lua_gettop(L);
if(n != 2 && n != 3){
return luaL_error(L, "expecting 1 or 2 arguments");
}
Simulation* s = luaW_check<Simulation>(L, 1);
double p1 = luaU_check<double>(L, 2);
if(n == 2){
s->setPeriodicity(p1);
}
else{
double p2 = luaU_check<double>(L, 3);
s->setPeriodicity(p1, p2);
}
return 1;
}
// this function wraps addMaterial(const std::string name, const std::string infile)
// @how to use:
// AddMaterial(material name, input file)
Expand Down Expand Up @@ -761,7 +741,6 @@ int MESH_GetReciprocalLattice(lua_State *L){
// tables for the three clases
/*=======================================================*/
static luaL_Reg character_metatable_Simulation[] = {
{ "SetPeriodicity", MESH_SetPeriodicity },
{ "AddMaterial", MESH_AddMaterial },
{ "SetMaterial", MESH_SetMaterial, },
{ "SetLayer", MESH_SetLayer, },
Expand Down

0 comments on commit f71e580

Please sign in to comment.